Example #1
0
        public static void Load(string levelName)
        {
            //so that the factionData can be set even if the game is not over (lost unit remain lost)
            if (gamePhase != _GamePhase.Over)
            {
                FactionManager.GameOver();
            }

                        #if UNITY_5_3_OR_NEWER
            SceneManager.LoadScene(levelName);
                        #else
            Application.LoadLevel(levelName);
                        #endif
        }
Example #2
0
        public static void GameOver(int factionID)
        {
            if (FactionManager.IsPlayerFaction(factionID))
            {
                PerkManager.GainPerkCurrencyOnVictory();
            }

            //if(onGameMessageE!=null) onGameMessageE("GameOver");
            TBTK.OnGameMessage("GameOver");

            gamePhase = _GamePhase.Over;

            FactionManager.GameOver();

            //if(onGameOverE!=null) onGameOverE(factionID);
            TBTK.OnGameOver(factionID);
        }