protected override void OnTrigger() { switch (type) { case Type.Load: scene.Load(loadingMode); break; case Type.Reload: StratusScene.Reload(); break; case Type.Unload: scene.Unload(); break; default: break; } }
void TryLoadingScene() { scene.Load(UnityEngine.SceneManagement.LoadSceneMode.Single); }