Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     anim        = GetComponent <Animator>();
     PathFinder  = FindObjectOfType <AI.PathFinder>();
     player      = FindObjectOfType <PlayerController>();
     attackTimer = attackCooldown;
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     body       = GetComponent <Rigidbody2D>();
     wayPoints  = new List <AI.WayPoint>();
     path       = new List <Vector3>();
     PathFinder = FindObjectOfType <AI.PathFinder>();
     // player = FindObjectOfType<PlayerController>();
     anim        = GetComponent <Animator>();
     EnemyAttack = GetComponent <EnemyAttack>();
     attackTimer = attackTime;
     //  blackBoard = FindObjectOfType<BlackBoard>();
 }