Example #1
0
 void updateStageKill()
 {
     if (side == GameBattleAttackResultSide.Left)
     {
         rightAnimation.setAlpha(alpha);
     }
     else
     {
         leftAnimation.setAlpha(alpha);
     }
 }
Example #2
0
    void updateStage()
    {
        transform.localScale = new Vector3(scale, scale, scale);

        if (floorAnimation != null)
        {
            floorAnimation.setAlpha(alpha);
        }

        blackImage.color = new Color(0.0f, 0.0f, 0.0f, alpha);

        if (kill)
        {
            if (side == GameBattleAttackResultSide.Left)
            {
                if (leftAnimation != null)
                {
                    leftAnimation.setAlpha(alpha);
                }
            }
            else
            {
                if (rightAnimation != null)
                {
                    rightAnimation.setAlpha(alpha);
                }
            }
        }
        else
        {
            if (attackerAnimation != null)
            {
                attackerAnimation.setAlpha(alpha);
            }

            if (leftAnimation != null)
            {
                leftAnimation.setAlpha(alpha);
            }

            if (rightAnimation != null)
            {
                rightAnimation.setAlpha(alpha);
            }
        }
    }
Example #3
0
 public void setAlpha(float a)
 {
     gameAnimation.setAlpha(a);
 }