示例#1
0
 public void SetRadioButton(string btnName)
 {
     if (btnName.Contains("TimeAttack"))
     {
         timeAttackBtn.GetComponent <RadioButtonController>().selectBtn.SetActive(true);
         turnBaseBtn.GetComponent <RadioButtonController>().selectBtn.SetActive(false);
         GameModeManager.SetTimeAttackMode();
     }
     else if (btnName.Contains("TurnBase"))
     {
         timeAttackBtn.GetComponent <RadioButtonController>().selectBtn.SetActive(false);
         turnBaseBtn.GetComponent <RadioButtonController>().selectBtn.SetActive(true);
         GameModeManager.SetTurnBaseMode();
     }
     userselectmode = btnName;
 }