public void Init(CardDeck.CoolingDownCard cdc, ClientPlayer clientPlayer) { ClientPlayer = clientPlayer; M_CoolingDownCard = cdc; CoolDownRoundText.text = cdc.LeftRounds.ToString(); ClientUtils.ChangeImagePicture(Image, AllCards.GetCard(cdc.CardID).BaseInfo.PictureID); CooldDownIconAnim.SetTrigger("Add"); }
public IEnumerator Co_UpdateValue(CardDeck.CoolingDownCard cdc) { M_CoolingDownCard = cdc; if (cdc.LeftRounds >= 0) { CooldDownIconAnim.SetTrigger("Jump"); } yield return(new WaitForSeconds(0.2f * BattleEffectsManager.AnimationSpeed)); CoolDownRoundText.text = cdc.LeftRounds.ToString(); yield return(new WaitForSeconds(0.1f)); yield return(null); }
public void OnRemove() { CooldDownIconAnim.SetTrigger("Remove"); }