コード例 #1
0
        /// <summary>
        ///		Gets called when a Scene is unpaused
        /// </summary>
        protected override void OnSceneUnpaused()
        {
            // Make the aliens move again
            AlienCoordinator aliens = GameObjectManager.Active.Find(GameObject.Name.AlienCoordinator, this.AlienCoordinatorId) as AlienCoordinator;

            if (aliens != null)
            {
                aliens.StartMovingAgain();
            }

            // Make the UFO play a sound, if it exists
            UFO ufo = GameObjectManager.Active.Find(GameObject.Name.UFO, this.UfoId) as UFO;

            if (ufo != null)
            {
                ufo.PlayLoopingSound();
            }
        }