/// <summary> /// temporarily runs SceneTransition allowing one Scene to transition to another smoothly with custom effects. /// </summary> /// <param name="sceneTransition">Scene transition.</param> public static T startSceneTransition <T>(T sceneTransition) where T : SceneTransition { Assert.isNull(_instance._sceneTransition, "You cannot start a new SceneTransition until the previous one has completed"); _instance._sceneTransition = sceneTransition; return(sceneTransition); }
/// <summary> /// temporarily runs SceneTransition allowing one Scene to transition to another smoothly with custom effects. /// </summary> /// <param name="sceneTransition">Scene transition.</param> public static void startSceneTransition(SceneTransition sceneTransition) { Assert.isNull(_instance._sceneTransition, "You cannot start a new SceneTransition until the previous one has completed"); _instance._sceneTransition = sceneTransition; }