示例#1
0
        public static UFO getUFO()
        {
            UFOMan pUFOMan = UFOMan.GetInstance();

            Debug.Assert(pUFOMan != null);
            return(pUFOMan.pUFO);
        }
示例#2
0
        public static void Reset()
        {
            UFOMan pUFOMan = UFOMan.GetInstance();

            Debug.Assert(pUFOMan != null);

            pUFOMan.pUFO = null;
        }
示例#3
0
        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);
        }