コード例 #1
0
    public override void UpdateRemainingText()
    {
        AllMissionStar.enabled     = false;
        DarkMissionStar.enabled    = false;
        NeutralMissionStar.enabled = false;
        HeroMissionStar.enabled    = false;

        if (RemainingDarkPlays == 0 && RemainingNeutralPlays == 0 && RemainingHeroPlays == 0)
        {
            AllMissionStar.enabled = true;
        }
        else
        {
            if (RemainingDarkPlays == 0)
            {
                DarkMissionStar.enabled = true;
            }
            if (RemainingNeutralPlays == 0)
            {
                NeutralMissionStar.enabled = true;
            }
            if (RemainingHeroPlays == 0)
            {
                HeroMissionStar.enabled = true;
            }
        }

        RemainingDarkText.text    = RemainingDarkPlays.ToString();
        RemainingNeutralText.text = RemainingNeutralPlays.ToString();
        RemainingHeroText.text    = RemainingHeroPlays.ToString();
    }
コード例 #2
0
    public override void UpdateRemainingText()
    {
        AllMissionStar.enabled  = false;
        DarkMissionStar.enabled = false;
        HeroMissionStar.enabled = false;

        switch (Mode)
        {
        case TwoMissionMode.DarkHeroTop:
        case TwoMissionMode.DarkHeroBottom:
        case TwoMissionMode.DarkHeroLast:
            if (RemainingDarkPlays == 0 && RemainingHeroPlays == 0)
            {
                AllMissionStar.enabled = true;
            }
            else
            {
                if (RemainingDarkPlays == 0)
                {
                    DarkMissionStar.enabled = true;
                }
                if (RemainingHeroPlays == 0)
                {
                    HeroMissionStar.enabled = true;
                }
            }
            RemainingDarkText.text = RemainingDarkPlays.ToString();
            RemainingHeroText.text = RemainingHeroPlays.ToString();
            break;

        case TwoMissionMode.DarkNeutral:
            if (RemainingDarkPlays == 0 && RemainingNeutralPlays == 0)
            {
                AllMissionStar.enabled = true;
            }
            else
            {
                if (RemainingDarkPlays == 0)
                {
                    DarkMissionStar.enabled = true;
                }
                if (RemainingNeutralPlays == 0)
                {
                    HeroMissionStar.enabled = true;
                }
            }
            RemainingDarkText.text = RemainingDarkPlays.ToString();
            RemainingHeroText.text = RemainingNeutralPlays.ToString();
            break;

        case TwoMissionMode.NeutralHero:
            if (RemainingNeutralPlays == 0 && RemainingHeroPlays == 0)
            {
                AllMissionStar.enabled = true;
            }
            else
            {
                if (RemainingNeutralPlays == 0)
                {
                    DarkMissionStar.enabled = true;
                }
                if (RemainingHeroPlays == 0)
                {
                    HeroMissionStar.enabled = true;
                }
            }
            RemainingDarkText.text = RemainingNeutralPlays.ToString();
            RemainingHeroText.text = RemainingHeroPlays.ToString();
            break;

        default:
            break;
        }
    }