Exemplo n.º 1
0
    public void Start()
    {
        SwitchButtonColor(GetButtons(), new Color32((byte)PlayerPrefs.GetInt("themeR"), (byte)PlayerPrefs.GetInt("themeG"), (byte)PlayerPrefs.GetInt("themeB"), 255));

        fm            = GameObject.FindGameObjectWithTag("Player").GetComponent <FaceManager>();
        items         = new List <ShopItem>();
        actualContent = (RectTransform)transform.GetChild(0).GetChild(1).GetChild(0).GetChild(0);
        items.Add(actualContent.GetChild(0).GetComponent <ShopItem>());
        transform.GetChild(0).Find("optMotion").GetChild(0).GetComponent <Toggle>().isOn = PlayerPrefs.GetInt("motion") == 1 ? false : true;
        InitMasterColor();
        dressUp();

        int lang = PlayerPrefs.GetInt("Lang");

        if (lang != 0)
        {
            LanguageSupport ls = GetComponent <LanguageSupport>();
            ls.ChangeLanguage(lang);
            ls.setLanguageDropdown(lang);
        }
    }