Example #1
0
 internal bool CanUseBalance(string balance)
 {
     if (HasComponent(Text.CompBalance))
     {
         BalanceComponent bal = (BalanceComponent)GetComponent(Text.CompBalance);
         return(bal.OnBalance(balance));
     }
     return(false);
 }
Example #2
0
 internal bool UseBalance(string balance, int msKnock)
 {
     if (HasComponent(Text.CompBalance))
     {
         BalanceComponent bal = (BalanceComponent)GetComponent(Text.CompBalance);
         bal.KnockBalance(balance, msKnock);
         return(true);
     }
     return(false);
 }