void Start() { SetHitPointext(currentHitPoint); SetLevelText(currentLevel); main.IsEnemyDead = false; shakeButton = GetComponent <ShakeButton>(); shakeButton.EnableShake(); }
void Respawn() { currentLevel += 1; SetLevelText(currentLevel); currentHitPoint = baseHitPoint * currentLevel; SetHitPointext(currentHitPoint); shakeButton.EnableShake(); isDead = false; main.IsEnemyDead = false; gameObject.SetActive(true); }