2 Commits

Author SHA1 Message Date
manhduyhoang90
7119a29c91 Merge branch 'main' of https://scove-vault.duckdns.org/scove/HALLUCINATION 2026-06-04 09:24:42 +07:00
manhduyhoang90
3567c55534 Update EnemyAI.cs 2026-06-04 09:24:20 +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();