Exemple #1
0
    private void Awake()
    {
        int    skinNum  = saveLoadData.LoadUsedSkin("Planet");
        string skinName = "Planet#" + skinNum;

        print(skinName);
        GameObject skin = GameObject.Find("Canvas").transform.Find("Shop Panel").
                          Find("Planets Scroller").Find("Viewport").
                          Find("Planets Content").Find(skinName).gameObject;

        print(skin.name);
        skin.GetComponent <Skin>().ApplySkin();

        audioController = GameObject.Find("Audio Controller").GetComponent <AudioController>();
    }