Ejemplo n.º 1
0
 void Start()
 {
     gameDataController = FindObjectOfType <GameDataController>();
     gameModeController = FindObjectOfType <GameMode>();
     if (gameDataController != null)
     {
         modeTumButton.interactable       = gameDataController.GetTumUnlockedStatus();
         modeAlternateButton.interactable = gameDataController.GetAlternateUnlockedStatus();
         if (!modeAlternateButton.interactable)
         {
             modeAlternateButton.gameObject.GetComponentInChildren <TextMeshProUGUI>().text = "Locked";
         }
     }
 }