Пример #1
0
 void Start()
 {
     onClicked = false;
     TUTField.SetActive(false);
     TUTField2.SetActive(false);
     TUTBack.SetActive(false);
 }
Пример #2
0
 public void OnClick()
 {
     if (TUTField2.activeInHierarchy && TUTField.activeInHierarchy)
     {
         TUTField2.SetActive(false);
     }
     else if (!TUTField2.activeInHierarchy && TUTField.activeInHierarchy)
     {
         TUTField.SetActive(false);
     }
 }