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