private void ToggleSceneInternal <TScene>() where TScene : SceneView
 {
     if (!_scenesLoaded.Contains(typeof(TScene)))
     {
         CpUnityExtensions.LoadLevelAdditive <TScene>();
     }
     else
     {
         CpUnityExtensions.UnloadLevelAdditive <TScene>();
     }
 }
예제 #2
0
 public override void Execute(Type sceneType)
 {
     CpUnityExtensions.LoadLevelAdditive(sceneType);
 }