/// <summary> Animates the border and text on the UI. </summary> /// <param name="state"> True for animation, false for no animation. </param> public void AnimateTypeUI(bool state) { /* Do Nothing If Move Is NOT Loaded */ if (!IsLoaded || !gameObject.activeInHierarchy) { return; } /* If Setting Off, Start Slowdown and Return */ if (state == false) { this.StartInterruptableCoroutine(border_Typesprite.AnimateSpritesheetToStop(spritesheet), ref r1); this.StartInterruptableCoroutine(name.ChangeColorOvertime(Color.white, 3f), ref r2); this.StartInterruptableCoroutine(ppCount.ChangeColorOvertime(Color.white, 3f), ref r3); return; } /* Otherwise, Start Animating Sprite */ this.StartInterruptableCoroutine(border_Typesprite.AnimateSpritesheet(spritesheet, spriteSpeed), ref r1); this.StartInterruptableCoroutine(name.FluxColor(name.color, Color.white / 1.5f, 2f), ref r2); this.StartInterruptableCoroutine(ppCount.FluxColor(ppCount.color, Color.white / 1.5f, 2f), ref r3); }