public void FallToDeath() { health = 0; machete.DropMachete(); gun.DropGun(); BleedWhenDead(); MakeRagDoll(); slomoController.SlomoOn(); alive = false; TriggerGameOver(); }
public void Continue() { DisablePauseUI(); if (slomoController.isSlomoEnabled) { slomoController.SlomoOn(); } else { Time.timeScale = 1; } }
private void OnTriggerEnter2D(Collider2D other) { Player player = other.gameObject.GetComponent <Player>(); if (!player) { return; } if (player) { slomoController.SlomoOn(); } }