Пример #1
0
 public void onEnter()
 {
     if (currentLevel != null)
     {
         currentLevel.Highlight(false);
         currentLevel = null;
     }
 }
Пример #2
0
 public void OnClickLevel(LevelList _item)
 {
     if (_item.info.isUnlock)
     {
         if (currentLevel == null)
         {
             _item.Highlight(true);
             btnPlay.SetActive(true);
             currentLevel = _item;
         }
         else
         {
             currentLevel.Highlight(false);
             _item.Highlight(true);
             currentLevel = _item;
         }
     }
 }
Пример #3
0
 public void OnClickLevel(LevelList _item)
 {
     if (_item.info.isUnlock)
     {
         if (currentLevel == null)
         {
             _item.Highlight(true);
             animPlay.SetTrigger("isShow");
             currentLevel = _item;
         }
         else
         {
             currentLevel.Highlight(false);
             _item.Highlight(true);
             currentLevel = _item;
         }
     }
 }