public void EndGameEffect() { float delay = 1f; music.StopAfterDelay(serverController, delay + .15f); CoroutineHelper.DelayedCall(serverController, EndgamePlayShutdown, delay); }
void EndScript() { endReached = true; TimeLogger.Log("Player use the GIVE UP button"); Destroy(this.GetComponent <UnityEngine.UI.Button>()); controller.CleanMovementGlowTiles(); controller.CleanSoundGlowTiles(); controller.Audio.PlayerDiedEffect(); CoroutineHelper.DelayedCall(controller, controller.ReloadClient, 3.5f); uiController.SetActiveClientFooterGroup(false); }