Exemple #1
0
    public void Portal(bool force = false)
    {
        isPortalling              = true;
        fader.OnFadeOutCompleted += Fader_OnFadeOutCompleted;
        fader.FadeOutStart();



//		if (force || stateRequirement == null || stateRequirement.isGameStateMeet () )
//		{
//			GameManager.shared().SetSpawnPosition(checkPoint.checkPointID);
//			GameManager.shared().UtilitiesData.setString ("LoadingScene_target_string", checkPoint.sceneName);
//
//
//			if(checkPoint.sceneName == Application.loadedLevelName)
//			{
//				CheckPointListType spawnPoint = GameManager.shared().GetSpawnPosition();
//				SceneController.shared().RoubPlayerObject.transform.position = SpawnController.shared().GetSpawnPosition(spawnPoint).position;
//				SceneController.shared().RoubPlayerObject.transform.eulerAngles = SpawnController.shared().GetSpawnPosition(spawnPoint).eulerAngles;
//			}
//			else{
//				InputManager.shared().disableTouch();
//				LevelController.shared().LoadLevel(checkPoint.sceneName);
//			}
//
//		}
//
    }
Exemple #2
0
 protected virtual void EndDieFX()
 {
     fader.OnFadeOutCompleted += HandleOnFadeOutCompleted;
     SetLayerRecursively(fader.gameObject, LayerMask.NameToLayer("GameoverLayerUI"));
     fader.FadeOutStart();
 }
Exemple #3
0
 void Splash_OnSceneSplashEndCompleted()
 {
     fader.FadeOutStart();
 }