Esempio n. 1
0
 void Update()
 {
     if (siteIndex == InteractablePathManager.NextInteractableSiteID())
     {
         GetComponent <CanvasGroup>().alpha = 0.75f + 0.25f * Mathf.Sin(5 * Time.time);
         GetComponentInChildren <TextMeshProUGUI>(true).gameObject.SetActive(true);
     }
     else
     {
         GetComponentInChildren <TextMeshProUGUI>(true).gameObject.SetActive(false);
     }
 }
Esempio n. 2
0
    private void SetValidLevelSelect()
    {
        if (GameManager.Mode == GameMode.Rehearsal)
        {
            foreach (Button button in levelButtonList)
            {
                button.interactable = false;
            }

            levelButtonList[InteractablePathManager.NextInteractableSiteID()].interactable = true;
        }
        else
        {
            foreach (Button button in levelButtonList)
            {
                button.interactable = true;
            }
        }
    }