예제 #1
0
    public void Play(int click, int[] gachaResult)
    {
        clickGoal  = click;
        clickCount = 0;
        gachaRes   = gachaResult.Clone() as int[];
        GachaAnimObject.SetActive(true);
        MenuDimmer.SetActive(true);
        GachaParticle.transform.localScale         = Vector3.one;
        GachaParticle.transform.eulerAngles        = Vector3.zero;
        GachaParticle.GetComponent <Image>().color = Color.white;

        if (gachaResult[5] > 0)
        {
            lastEffectColor = new Color32(255, 128, 0, 255);
        }
        else if (gachaResult[4] > 0)
        {
            lastEffectColor = Color.cyan;
        }
        else if (gachaResult[3] > 0)
        {
            lastEffectColor = Color.magenta;
        }
        else if (gachaResult[2] > 0)
        {
            lastEffectColor = Color.yellow;
        }
        else if (gachaResult[1] > 0)
        {
            lastEffectColor = new Color32(180, 152, 90, 255);
        }
        else
        {
            lastEffectColor = Color.white;
        }
    }
예제 #2
0
 public void ToggleMenuDimmer(bool flag)
 {
     MenuDimmer.SetActive(flag);
 }