Esempio n. 1
0
        private void ResetAll()
        {
            //-----Reset Everything-----
            PlayerLivesComposite pNullObjs = (PlayerLivesComposite)GameObjectManager.Find(GameObject.Name.Null_Object);

            pNullObjs.ResetLives();

            AlienGrid pGrid = (AlienGrid)GameObjectManager.Find(GameObject.Name.AlienGrid);

            pGrid.ResetAliens();

            ShieldRoot pSRoot = (ShieldRoot)GameObjectManager.Find(GameObject.Name.ShieldRoot);

            pSRoot.ResetShields();

            UFORoot      pUFORoot = (UFORoot)GameObjectManager.Find(GameObject.Name.UFORoot);
            OrangeSaucer pUFO     = (OrangeSaucer)pUFORoot.GetFirstChild();

            pUFO.Remove();

            TimerManager.Reset();
        }