Exemplo n.º 1
0
        void Awake()
        {
            m_locationSceneUI = GetComponentInParent <LocationSceneUI>();
            m_image           = GetComponent <Image>();
            m_button          = GetComponent <Button>();
            m_text            = GetComponentInChildren <Text>();

            m_text.enabled   = false;
            m_image.enabled  = false;
            m_button.enabled = false;

            Debug.Log("Awake");
        }
 void OnEnable()
 {
     m_locationSceneUI = GameObject.FindGameObjectWithTag("LocationSceneUI").GetComponent <LocationSceneUI>();
 }
        // Use this for initialization

        private void Awake()
        {
            m_text            = GetComponent <Text>();
            m_locationSceneUI = GetComponentInParent <LocationSceneUI>();
        }