/** * <summary>Creates a new instance of the 'Scene: Check' Action</summary> * <param name = "sceneName">The build index number of the scene to check for</param> * <param name = "sceneToCheck">Which scene type to check for</param> * <returns>The generated Action</returns> */ public static ActionSceneCheck CreateNew(int sceneNumber, SceneToCheck sceneToCheck = SceneToCheck.Current) { ActionSceneCheck newAction = (ActionSceneCheck)CreateInstance <ActionSceneCheck>(); newAction.sceneToCheck = sceneToCheck; newAction.chooseSceneBy = ChooseSceneBy.Number; newAction.sceneNumber = sceneNumber; return(newAction); }
/** * <summary>Creates a new instance of the 'Scene: Check' Action</summary> * <param name = "sceneName">The name of the scene to check for</param> * <param name = "sceneToCheck">Which scene type to check for</param> * <returns>The generated Action</returns> */ public static ActionSceneCheck CreateNew(string sceneName, SceneToCheck sceneToCheck = SceneToCheck.Current) { ActionSceneCheck newAction = (ActionSceneCheck)CreateInstance <ActionSceneCheck>(); newAction.sceneToCheck = sceneToCheck; newAction.chooseSceneBy = ChooseSceneBy.Name; newAction.sceneName = sceneName; return(newAction); }