// Execute in edit mode public void Update() { if (currentStage != lastStage) { LoadStageFileAndSetStream(); lastStage = currentStage; } }
private void StageButton(string buttonLabel, FZeroGXStage stage) { if (GUILayout.Button(buttonLabel, GUILayout.MinWidth(buttonWidth))) { StageManager.currentStage = stage; EditorUtility.SetDirty(editorTarget); } }
public static void LoadAll() { for (int i = 0; i <= 110; i++) { FZeroGXStage stage = ((FZeroGXStage)i); // Greater than int value if (stage.ToString().Length > 3) { StageManager.ChangeStage(stage); } } }
public static void ChangeStage(FZeroGXStage stage) { currentStage = stage; current.Update(); }