Example #1
0
 public void onEnter()
 {
     if (currentLevel != null)
     {
         currentLevel.Highlight(false);
         currentLevel = null;
     }
 }
Example #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;
         }
     }
 }
 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;
         }
     }
 }