Esempio n. 1
0
 public void OnPopUpSelectionChange()
 {
     foreach (MusicTypeData mtd in types)
     {
         if (mtd.name.Equals(popupList.value.ToString()))
         {
             popupList.GetComponent <UISprite>().color = mtd.color;
             currentUType = mtd.uType;
             return;
         }
     }
 }
Esempio n. 2
0
 void ForbiddenModify()
 {
     PPLRole.GetComponent <BoxCollider>().enabled     = false;
     IPTAddress.GetComponent <BoxCollider>().enabled  = false;
     IPTTelphone.GetComponent <BoxCollider>().enabled = false;
     IPTMemo.GetComponent <BoxCollider>().enabled     = false;
     LBLPassword.transform.FindChild("ResetPassword").gameObject.SetActive(false);
     PPLRole.transform.FindChild("Background").gameObject.SetActive(false);
     IPTAddress.transform.FindChild("Background").gameObject.SetActive(false);
     IPTTelphone.transform.FindChild("Background").gameObject.SetActive(false);
     IPTMemo.transform.FindChild("Background").gameObject.SetActive(false);
     BtnContainer.SetActive(false);
 }
Esempio n. 3
0
    private void GetDeckList()
    {
        string selectedOpponent = selectedOpponentLbl.text.Replace("SELECTED OPPONENT: ", "");

        selectedDeckCmb.GetComponent <UIPopupList>().Clear();

        if (selectedOpponent == "DUELING ROBOT")
        {
            if (masterRulesCmb.value == "RULE 3 (PENDULUM)")
            {
                selectedDeckCmb.value = "BLACKWING";
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLACKWING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES MAX DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES WHITE DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CHAIN BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CYBER DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DARK MAGICIAN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DRAGUNITY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("EVILSWARM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("FROG");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("GRAVEKEEPER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("HORUS");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LEVEL VIII");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LIGHTSWORN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY KING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("NEKROZ");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("PHANTASM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("QLIPHORT");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RAINBOW");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RANK V");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SHADDOLL DINOSAUR");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("TOADALLY AWESOME");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("YOSENJU");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ZEXAL WEAPONS");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ZOODIAC");
            }
            else if (masterRulesCmb.value == "RULE 4 (LINKS)")
            {
                selectedDeckCmb.value = "ALTERGEIST";
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ALTERGEIST");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLACKWING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES MAX DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES WHITE DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CHAIN BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CYBER DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DARK MAGICIAN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DRAGUN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DRAGUNITY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("EVILSWARM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("FROG");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("GRAVEKEEPER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("GREN MAJU THUNDER BOARDER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("HORUS");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LEVEL VIII");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LIGHTSWORN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY KING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("NEKROZ");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ORCUST");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("PHANTASM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("QLIPHORT");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RAINBOW");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RANK V");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ST1732");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SALAMANGREAT");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SHADDOLL DINOSAUR");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SKY STRIKER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("TRICKSTAR");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("YOSENJU");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ZEXAL WEAPONS");
            }
            else if (masterRulesCmb.value == "RULE 5 (APRIL 2020)")
            {
                selectedDeckCmb.value = "ALTERGEIST";
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ALTERGEIST");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLACKWING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES MAX DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BLUE-EYES WHITE DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CHAIN BURN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("CYBER DRAGON");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DARK MAGICIAN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DRAGUN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DRAGUNITY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("EVILSWARM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("FROG");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("GRAVEKEEPER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("GREN MAJU THUNDER BOARDER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("HORUS");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LEVEL VIII");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("LIGHTSWORN");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("MOKEY MOKEY KING");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("NEKROZ");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ORCUST");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("PHANTASM");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("QLIPHORT");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RAINBOW");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("RANK V");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ST1732");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SALAMANGREAT");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SHADDOLL DINOSAUR");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SKY STRIKER");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("TOADALLY AWESOME");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("TRICKSTAR");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("YOSENJU");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ZEXAL WEAPONS");
                selectedDeckCmb.GetComponent <UIPopupList>().AddItem("ZOODIAC");
            }
        }
        else if (selectedOpponent == "YUGI MUTO")
        {
            selectedDeckCmb.GetComponent <UIPopupList>().AddItem("YUGI MUTO DECK");
            selectedDeckCmb.value = "YUGI MUTO DECK";
        }
        else if (selectedOpponent == "SETO KAIBA")
        {
            selectedDeckCmb.GetComponent <UIPopupList>().AddItem("SETO KAIBA DECK");
            selectedDeckCmb.value = "SETO KAIBA DECK";
        }
        else if (selectedOpponent == "JOEY WHEELER")
        {
            selectedDeckCmb.GetComponent <UIPopupList>().AddItem("JOEY WHEELER DECK");
            selectedDeckCmb.value = "JOEY WHEELER DECK";
        }
        else if (selectedOpponent == "DARTZ")
        {
            selectedDeckCmb.GetComponent <UIPopupList>().AddItem("DARTZ DECK");
            selectedDeckCmb.value = "DARTZ DECK";
        }
    }
Esempio n. 4
0
    private void ChangeOpponent(int opponent)
    {
        Texture newOpponentPic;
        Texture oldOponentPic = selectedOpponentPic.mainTexture;

        string newOpponentTxt;
        string oldSelectedOpponent = selectedOpponentLbl.text.Replace("SELECTED OPPONENT: ", "");

        if (opponent == 1)
        {
            newOpponentTxt           = opponent1Lbl.text;
            newOpponentPic           = opponent1Pic.mainTexture;
            opponent1Lbl.text        = oldSelectedOpponent;
            opponent1Pic.mainTexture = oldOponentPic;
        }
        else if (opponent == 2)
        {
            newOpponentTxt           = opponent2Lbl.text;
            newOpponentPic           = opponent2Pic.mainTexture;
            opponent2Lbl.text        = oldSelectedOpponent;
            opponent2Pic.mainTexture = oldOponentPic;
        }
        else if (opponent == 3)
        {
            newOpponentTxt           = opponent3Lbl.text;
            newOpponentPic           = opponent3Pic.mainTexture;
            opponent3Lbl.text        = oldSelectedOpponent;
            opponent3Pic.mainTexture = oldOponentPic;
        }
        else
        {
            newOpponentTxt           = opponent4Lbl.text;
            newOpponentPic           = opponent4Pic.mainTexture;
            opponent4Lbl.text        = oldSelectedOpponent;
            opponent4Pic.mainTexture = oldOponentPic;
        }

        if (newOpponentTxt == "DUELING ROBOT")
        {
            masterRulesCmb.GetComponent <UIPopupList>().Clear();

            masterRulesCmb.GetComponent <UIPopupList>().AddItem("RULE 3 (PENDULUM)");
            masterRulesCmb.GetComponent <UIPopupList>().AddItem("RULE 4 (LINKS)");
            masterRulesCmb.GetComponent <UIPopupList>().AddItem("RULE 5 (APRIL 2020)");

            masterRulesCmb.value = "RULE 4 (LINKS)";
        }
        else
        {
            masterRulesCmb.GetComponent <UIPopupList>().Clear();

            masterRulesCmb.GetComponent <UIPopupList>().AddItem("RULE 3 (PENDULUM)");

            masterRulesCmb.value = "RULE 3 (PENDULUM)";
        }

        selectedOpponentLbl.text        = "SELECTED OPPONENT: " + newOpponentTxt;
        selectedOpponentPic.mainTexture = newOpponentPic;

        GetDeckList();
    }