예제 #1
0
 // 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);
            }
        }
    }
예제 #4
0
 public static void ChangeStage(FZeroGXStage stage)
 {
     currentStage = stage;
     current.Update();
 }