//called on event OnParticleCollisions public void SwitchToDefeatPhase(GameObject LooseObject) { GameStateEnum.gameStateEnum = GameStateEnum.GAMESTATE.Loose; LooseObject.SetActive(false); ScoringManager.nbDeath++; ScoringManager.LooseCheck(); }