Пример #1
0
 private void OnHiderClick()
 {
     HiderButton.NextState();
     if (HiderButton.CurrentState == 0)
     {
         targetContentHideHeight = 0f;
     }
     else
     {
         targetContentHideHeight = Mathf.Min(512f, CategoryContainer.rectTransform().rect.height);
     }
 }
Пример #2
0
 private void OnClickDontShowAgain()
 {
     dontShowAgainButton.NextState();
     KPlayerPrefs.SetInt("HideTutorial_CheckState", (dontShowAgainButton.CurrentState == 0) ? 1 : 0);
 }
Пример #3
0
 private void OnClick()
 {
     toggle.NextState();
     content.SetActive(toggle.CurrentState == 0);
 }