Example #1
0
        private void OnBuildingDestroyed(GameBuilding destroyedBuilding)
        {
            GameLogicMgr gameLogicMgr = GameLogicMgr.GetInstance();

            if (destroyedBuilding.GetTeam() != 0)
            {
                // Display you won message.
                gameLogicMgr.GameWon();
            }
            else
            {
                // Display the you lost message.
                gameLogicMgr.GameOver();
            }
        }