示例#1
0
 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");
 }
示例#2
0
    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);
    }
示例#3
0
 public void OnRemove()
 {
     CooldDownIconAnim.SetTrigger("Remove");
 }