示例#1
0
        private ChangeScene ChangeScene(string sceneName)
        {
            ChangeScene action = new ChangeScene();
            action.SceneName = sceneName;

            sut.OnChangeScene(action);

            return action;
        }
示例#2
0
        /// <summary>
        /// Is called on the first frame just before any of the Update methods is called the first time.
        /// Initializes the <see cref="Mortar.Core.Systems.SystemManager"/> and queues a <see cref="Mortar.Events.Incidents.GameStarted"/> event.
        /// </summary>
        public void Start()
        {
            SystemManager.InitializeSystems();
            EventManager.QueueEvent(typeof(GameStarted), "Mortar");

            ChangeScene action = new ChangeScene();
            action.SceneName = "0001_test";
            EventManager.QueueEvent(action);
        }