public void Play(AnimationList iList, Action callback) { Init(); _actCallback = callback; base.transform.localPosition = Vector3.zero; _iList = iList; setGlowEffects(); base.transform.localScale = Vector3.one; _animAnimation.Play(iList.ToString()); }
public virtual void Play(AnimationList iList, Action callback) { _iList = iList; _isFinished = false; _actCallback = callback; _nSpriteIndex = 0; _uiHexBtn.spriteName = _strSpriteNames[_nSpriteIndex]; this.SetActive(isActive: true); _animAnimation.Play(iList.ToString()); }
public void SetFocusAnimation() { _animAnimation.Stop(); _animAnimation.wrapMode = WrapMode.Default; UISprite component = ((Component)base.transform.FindChild("HexSelect")).GetComponent <UISprite>(); component.alpha = 0.03f; _toggle.startsActive = false; if (isFocus) { _toggle.startsActive = true; _animAnimation.wrapMode = WrapMode.Loop; _iList = AnimationList.HexButtonSelect; _animAnimation.Play(_iList.ToString()); } }
public void PlayNewAnimation( AnimationList animation, bool isLooped ){ spineAnimation.state.AddAnimation( 1, animation.ToString( ), isLooped, 0.5f ); runningAnimation = animation; }
public void SetAnimation(AnimationList ani) { anima = ani; anim.SetTrigger(anima.ToString()); }
private void playLabelSpacing() { KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.SE_945); ((Component)_uiLabel).GetComponent <Animation>().Play(_iList.ToString()); }