Пример #1
0
    void level3()
    {
        oldwichBG.transform.FindChild("Oldwich").GetComponent <Image>().sprite      = oldwich2;
        oldwichBG.transform.FindChild("OldwichNameText").GetComponent <Text>().text = "Sandalf the Old";
        Transform lockBG = oldwichBG.transform.FindChild("LockBG");

        lockBG.gameObject.SetActive(true);
        lockBG.FindChild("LockIcon").gameObject.SetActive(false);
        lockBG.FindChild("InfoText").gameObject.SetActive(true);
        lockBG.FindChild("ResetGainText").gameObject.SetActive(true);
        lockBG.FindChild("NextElixirBar").gameObject.SetActive(true);
        lockBG.FindChild("ResetGainText").GetComponent <Text>().text = Util.encodeNumberInteger((int)ResetManager.elixirsOnReset());
    }
Пример #2
0
 void updateElixirCounter()
 {
     elixirCounter.GetComponent <Text>().text = Util.encodeNumberInteger((int)ResetManager.elixirsOnReset());
 }