Update EnemyAI.cs
This commit is contained in:
@@ -26,10 +26,13 @@ public class EnemyAI : MonoBehaviour
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
player = GameObject.FindGameObjectWithTag("Player").transform;
|
||||||
nextShootTime = Time.time + Random.Range(minShootDelay, maxShootDelay);
|
nextShootTime = Time.time + Random.Range(minShootDelay, maxShootDelay);
|
||||||
InitBehaviorTree();
|
InitBehaviorTree();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
behaviorTreeRoot?.Evaluate();
|
behaviorTreeRoot?.Evaluate();
|
||||||
|
|||||||
Reference in New Issue
Block a user