public void AnimateInNewCardBack(CardBackManager.LoadCardBackData cardBackData, GameObject original) { GameObject gameObject = cardBackData.m_GameObject; gameObject.GetComponent <Actor>().GetSpell(SpellType.DEATHREVERSE).Reactivate(); AnimatedCardBack back = new AnimatedCardBack { CardBackId = cardBackData.m_CardBackIndex, GameObject = gameObject, OriginalScale = gameObject.transform.localScale, OriginalPosition = original.transform.position }; this.m_animData = back; gameObject.transform.position = new Vector3(original.transform.position.x, original.transform.position.y + 0.5f, original.transform.position.z); gameObject.transform.localScale = this.m_cardBackContainer.transform.lossyScale; object[] args = new object[] { "from", 0f, "to", 1f, "time", 0.6f, "easetype", iTween.EaseType.easeOutCubic, "onupdate", "AnimateNewCardUpdate", "onupdatetarget", base.gameObject, "oncomplete", "AnimateNewCardFinished", "oncompleteparams", back, "oncompletetarget", base.gameObject }; Hashtable hashtable = iTween.Hash(args); iTween.ValueTo(gameObject, hashtable); }
public void AnimateNewCardFinished(AnimatedCardBack cardBack) { object[] objArray1 = new object[] { cardBack }; base.method_8("AnimateNewCardFinished", objArray1); }
private void AnimateNewCardFinished(AnimatedCardBack cardBack) { cardBack.GameObject.transform.localScale = cardBack.OriginalScale; this.UpdateCardBack(cardBack.CardBackId, true, cardBack.GameObject); this.m_animData = null; }