Beispiel #1
0
 public virtual CharacterInfo[] GetSelectableCharacters()
 {
     if (UFE.gameMode == GameMode.StoryMode)
     {
         return(UFE.GetStoryModeSelectableCharacters());
     }
     else if (UFE.gameMode == GameMode.TrainingRoom)
     {
         return(UFE.GetTrainingRoomSelectableCharacters());
     }
     else
     {
         return(UFE.GetVersusModeSelectableCharacters());
     }
 }
    public override void OnShow()
    {
        base.OnShow();

        if (UFE.gameMode == GameMode.StoryMode)
        {
            this.selectableCharacters = UFE.GetStoryModeSelectableCharacters();
        }
        else if (UFE.gameMode == GameMode.TrainingRoom)
        {
            this.selectableCharacters = UFE.GetTrainingRoomSelectableCharacters();
        }
        else
        {
            this.selectableCharacters = UFE.GetVersusModeSelectableCharacters();
        }

        UFE.SetPlayer1(null);
        UFE.SetPlayer2(null);
        this.SetHoverIndex(1, 0);
        this.SetHoverIndex(2, this.selectableCharacters.Length - 1);
    }