private void CheckLoseConditions() { if (!GameManagerBehaviour.Instance.GameInProgress) { return; } // LOSE CONDITION: fartmeter is filled up, s******g your pants if (FartJuice.health >= FartJuice.maximumHealth) { GameManagerBehaviour.EndGame("You shat yourself! Make sure to fart from time to time. Don't worry, nobody will know it's you."); } // LOSE CONDITION: if you fart too quick if (FartCooldown.health >= FartCooldown.maximumHealth) { GameManagerBehaviour.EndGame("You shat yourself! Don't fart too hard; for once Icarus taught us not to fly too close to the sun."); } //LOSE CONDITION: if you lose balance if (LostBalance()) { Debug.Log("Lost balance!"); GameManagerBehaviour.EndGame("You lost balance! Maybe you should drink less, you boozebag."); } //LOSE CONDITION: if you stop running if (_rb.velocity.sqrMagnitude < .1f) { GameManagerBehaviour.EndGame("You got too tired!"); } }
internal static void EndGame(string message) => Instance.EndGame(new EndGameEventArgs(message, ScoreController.GetScore()));