void Shoot() { if (InputManager.MouseButtonDown(0) && !hasShoot && ammo > 0 && !paused) { Ammo -= 1; SoundManager.CreateSound("Shoot"); CreateBullet(); hasShoot = true; StartCoroutine(coolDownShoot()); } }
void Damage(int amount) { Life -= amount; PushHit(); SoundManager.CreateSound("Hit"); if (Life <= 0) { PausedData.DeadPause(); } Hited = true; }