Beispiel #1
0
 public void LevelButtonClick(LevelGateControl level)
 {
     if (level != _selectLevel)
     {
         _SwordForSelection.Show(level.transform.position);
         _selectLevel = level;
     }
     else
     {
         BattleStart(level.GetComponent <LevelInfo> ());
     }
 }
Beispiel #2
0
 public void LevelButtonClick(LevelGateControl level)
 {
     if (level != _selectLevel)
     {
         if (_selectLevel != null && _selectLevel.GetMapLayer() == _maps [_selectMapIndex])
         {
             _selectLevel = level;
             _SwordForSelection.Disappear(ShowSword);
         }
         else
         {
             _selectLevel = level;
             ShowSword();
         }
     }
     else
     {
         BattleStart(level.GetComponent <LevelInfo> ());
     }
 }