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