public virtual void Play(UIHexButton.AnimationList iList, Action callback) { this._iList = iList; this._isFinished = false; this._actCallback = callback; this._nSpriteIndex = 0; this._uiHexBtn.spriteName = this._strSpriteNames[this._nSpriteIndex]; this.SetActive(true); this._animAnimation.Play(iList.ToString()); }
public void SetFocusAnimation() { this._animAnimation.Stop(); this._animAnimation.set_wrapMode(0); UISprite component = base.get_transform().FindChild("HexSelect").GetComponent <UISprite>(); component.alpha = 0.03f; this._toggle.startsActive = false; if (this.isFocus) { this._toggle.startsActive = true; this._animAnimation.set_wrapMode(2); this._iList = UIHexButton.AnimationList.HexButtonSelect; this._animAnimation.Play(this._iList.ToString()); } }