Esempio n. 1
0
 public void FreeCastSlot(CastSlot castSlot)
 {
     IdleCastSlots.Add(castSlot);
     BusyCastSlots.Remove(castSlot);
     if (castSlot == ActiveCastSlot)
     {
         ActiveCastSlot = null;
     }
 }
Esempio n. 2
0
 public void FirstTap(Button button)
 {
     if (!ActiveCastSlot)
     {
         MAGIC.I.Fail(MAGIC.FailureCondition.NoCastSlot);
         button.Clear(true);
     }
     else
     {
         Debug.Log($"First Tap: {button.ToString()}");
         BusyCastSlots.Add(ActiveCastSlot);
         IdleCastSlots.Remove(ActiveCastSlot);
         ActiveCastSlot = null;
     }
 }