Пример #1
0
    private void Awake()
    {
        instance = this;
        GameObject Images = GameObject.Find("Images");

        if (m_Player)
        {
            m_Player.hp = m_Player.maxHp;
        }
        if (SceneLoader.GetNowSceneName() == "MapTree")
        {
            isSettingButtonsActive = false;
        }

        // GameObject GoldImg = Images?.transform?.GetChild(0)?.gameObject;
        // GameObject MaterialImg = Images?.transform?.GetChild(0)?.gameObject;

        // GoldText = GoldImg?.transform?.GetChild(0)?.GetComponent<Text>();

        // RubyText = MaterialImg?.transform?.GetChild(0)?.GetComponent<Text>();
        // SapphireText = MaterialImg?.transform?.GetChild(1)?.GetComponent<Text>();
        // TopazText = MaterialImg?.transform?.GetChild(2)?.GetComponent<Text>();
        // DiamondText = MaterialImg?.transform?.GetChild(3)?.GetComponent<Text>();
    }
Пример #2
0
 private void Awake()
 {
     instance = this;
 }