Esempio n. 1
0
 void AttackPlayerifCloseEnough()
 {
     if (Vector3.Distance(transform.position, player.transform.position) < 10)
     {
         dragonAnimator.PlayAttackAnimation();
         EndGameUi.ShowTextAndQuit("YOU DIED");
     }
 }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }