コード例 #1
0
ファイル: Core.cs プロジェクト: crt09/Color-Switch
 /// <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
 {
     Insist.isNull(_instance._sceneTransition, "You cannot start a new SceneTransition until the previous one has completed");
     _instance._sceneTransition = sceneTransition;
     return(sceneTransition);
 }