private void die() { vibrateJoystick.SetVibrating(0f, 0f, false); if (lives <= 0) { Destroy(gameObject); } else { lives--; health = maxHealth; RespawnPointManager.RequestRespawn(gameObject); } }
void Awake() { Singleton = this; }
private void Start() { anim = GetComponent <Animator>(); RespawnPointManager.AddSpawnPoint(this); }