public static UFO getUFO() { UFOMan pUFOMan = UFOMan.GetInstance(); Debug.Assert(pUFOMan != null); return(pUFOMan.pUFO); }
public static void Reset() { UFOMan pUFOMan = UFOMan.GetInstance(); Debug.Assert(pUFOMan != null); pUFOMan.pUFO = null; }
public static UFO ActiveUFO() { UFOMan pUFOMan = UFOMan.GetInstance(); Debug.Assert(pUFOMan != null); UFO pUFO = new UFO(GameObject.Name.UFO, GameSprite.Name.UFO, 10.0f, 925.0f); pUFOMan.pUFO = pUFO; pUFOMan.pUFO.activateGameSprite(SpriteBatchMan.Find(SpriteBatch.Name.UFO)); pUFOMan.pUFO.activateCollisionSprite(SpriteBatchMan.Find(SpriteBatch.Name.Boxes)); GameObject pUFORoot = GameObjectMan.Find(GameObject.Name.UFORoot); pUFORoot.add(pUFOMan.pUFO); return(pUFOMan.pUFO); }