Compare commits
2 Commits
b2975be4ef
...
7119a29c91
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7119a29c91 | ||
|
|
3567c55534 |
@@ -26,10 +26,13 @@ public class EnemyAI : MonoBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
player = GameObject.FindGameObjectWithTag("Player").transform;
|
||||
nextShootTime = Time.time + Random.Range(minShootDelay, maxShootDelay);
|
||||
InitBehaviorTree();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void Update()
|
||||
{
|
||||
behaviorTreeRoot?.Evaluate();
|
||||
|
||||
Reference in New Issue
Block a user