Beispiel #1
0
        // Use this for initialization
        private void OnEnable()
        {
            m_locationUI = GetComponentInParent <LocationUI>();
            m_text       = GetComponent <Text>();

            string str   = m_locationUI.WhatToWrite();
            Color  color = m_locationUI.GetColor();

            m_text.fontSize = 12;
            m_text.color    = color;
            m_text.text     = str;
        }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     m_locationUI = GameObject.FindGameObjectWithTag("LocationUI").GetComponent <LocationUI>();
     m_mainCamera = Camera.main;
     locationData = GetComponentInParent <LocationSetup>().LocationData;
 }