Beispiel #1
0
        protected void DoExit(ControlledStateManager manager)
        {
            var scene_names_to_unload = FirstScenesExitUnload
                                        .Concat(SecondScenesExitUnload)
                                        .ToArray();

            manager.EnqueueCoroutine(OnStateExitCoroutine(scene_names_to_unload).GetEnumerator());
        }
Beispiel #2
0
        protected void DoEnter(ControlledStateManager manager, bool skip_if_already_loaded)
        {
            var scene_names_to_load = FirstScenesEntryLoad
                                      .Concat(SecondScenesEntryLoad)
                                      .ToArray();

            //manager.EnqueueDeferredCoroutine(OnStateEnterCoroutine(scene_names_to_load).GetEnumerator());
            manager.EnqueueCoroutine(OnStateEnterCoroutine(scene_names_to_load, skip_if_already_loaded).GetEnumerator());
        }