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