some small fixes
This commit is contained in:
parent
c45632247d
commit
7611537b34
@ -454,16 +454,6 @@ public class AI_BotController : MonoBehaviour
|
||||
|
||||
private void AttackEnemy(PlayerState currentEnemy)
|
||||
{
|
||||
/*if (currentEnemy && Vector3.Distance(currentEnemy.transform.position, transform.position) < 1.1f * TileManagment.tileOffset)
|
||||
{
|
||||
//Debug.Log("startAttack");
|
||||
//isAttackedOnce = true;
|
||||
leftInput = Vector2.zero;
|
||||
_currentFollowingPath.Clear();
|
||||
_actionTriggerSystem.TriggerAction(currentEnemy.currentTile, _playerState.defaultAction);
|
||||
StartPatrolBehaviour();
|
||||
}*/
|
||||
|
||||
leftInput = Vector2.zero;
|
||||
_currentFollowingPath.Clear();
|
||||
_actionTriggerSystem.TriggerAction(currentEnemy.currentTile, _playerState.defaultAction);
|
||||
@ -500,14 +490,8 @@ public class AI_BotController : MonoBehaviour
|
||||
}
|
||||
_currentFollowingPath = Pathfinding.FindPath(curentPos, target, TileManagment.levelTiles, TileManagment.tileOffset);
|
||||
//Debug.Log("created path to " + target);
|
||||
if (_currentFollowingPath != null)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return _currentFollowingPath != null;
|
||||
|
||||
}
|
||||
|
||||
private void MoveAlongPath()
|
||||
|
@ -195,7 +195,7 @@ public class TileManagment : MonoBehaviour
|
||||
{
|
||||
return resultTile;
|
||||
}*/
|
||||
if (position.x < 0 || position.z > 0.5f)
|
||||
if (position.x < -0.5 || position.z > 0.5f)
|
||||
{
|
||||
//Debug.Log("null pos");
|
||||
return null;
|
||||
|
@ -127,7 +127,7 @@ PlayerSettings:
|
||||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.38
|
||||
bundleVersion: 0.40
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user