This commit is contained in:
2026-06-04 10:42:47 +07:00

View File

@@ -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();