internal bool CanUseBalance(string balance) { if (HasComponent(Text.CompBalance)) { BalanceComponent bal = (BalanceComponent)GetComponent(Text.CompBalance); return(bal.OnBalance(balance)); } return(false); }
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); }