ChaseState fix
This commit is contained in:
parent
148e1e40e1
commit
8452581040
@ -51,10 +51,9 @@ namespace Characters.Enemy.States
|
|||||||
|
|
||||||
_enemy.targetTransform = _enemy.GetClosestTarget();
|
_enemy.targetTransform = _enemy.GetClosestTarget();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (!_enemy.HasTarget)
|
||||||
{
|
{
|
||||||
_enemy.targetTransform = null;
|
|
||||||
|
|
||||||
_enemy.ChangeState(EnemyState.Idle);
|
_enemy.ChangeState(EnemyState.Idle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using Mirror;
|
using Mirror;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@ -53,8 +51,6 @@ namespace Level.BuildModules
|
|||||||
DoorU2, DoorD2, DoorL2, DoorR2,
|
DoorU2, DoorD2, DoorL2, DoorR2,
|
||||||
DoorU3, DoorD3, DoorL3, DoorR3
|
DoorU3, DoorD3, DoorL3, DoorR3
|
||||||
});
|
});
|
||||||
|
|
||||||
// Debug.Log(_doors.Count());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnStartClient()
|
public override void OnStartClient()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user