Esempio n. 1
0
    /// <summary> Sets hover state of circle. </summary>
    /// <param name="state"> True for brighter circle with question mark and false for darker cirlce. </param>
    public void HoverCircle(bool state)
    {
        /* Do Nothing If Move Is NOT Loaded */
        if (!IsLoaded || observingMove || !gameObject.activeInHierarchy)
        {
            return;
        }

        /* Set Colors Of Circle And Question Mark */
        this.StartInterruptableCoroutine(circle.ChangeColorOvertime(Color.white * (state ? 1 : 0.7f), 16), ref circleRoutine);
        this.StartInterruptableCoroutine(circle_Question.ChangeColorOvertime(state ? Color.white : Color.clear, 16), ref questionRoutine);
    }
Esempio n. 2
0
    /// <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);
    }