Beispiel #1
0
    void onJumpHPOver1()
    {
        if (kill)
        {
            if (side == GameBattleAttackResultSide.Left)
            {
                rightAnimation.stopAnimation();
                rightAnimation.setColor(new Color(0.0f, 0.0f, 0.0f));
            }
            else
            {
                leftAnimation.stopAnimation();
                leftAnimation.setColor(new Color(0.0f, 0.0f, 0.0f));
            }

            startFadeKill = true;
            alpha         = 0.8f;
            time          = -0.1f;

            updateFadeKill();
        }
        else
        {
            if (overUnShow)
            {
                unShow();
            }
            else
            {
                if (onEventOver != null)
                {
                    onEventOver();
                }
            }
        }
    }
Beispiel #2
0
 public void setColor(Color c)
 {
     gameAnimation.setColor(c);
 }