// Use this for initialization
        void Start()
        {
            translation = locaKey;
            textMesh = this.GetComponent<TextMesh>();
            textDisplay = this.GetComponent<GUIText>();
            if(textMesh != null)
            {
                textMesh.text = translation;
            }

            if(textDisplay != null)
            {
                textDisplay.text = translation;
            }
        }
Esempio n. 2
0
        // Use this for initialization
        void Start()
        {
            translation = locaKey;
            textMesh    = this.GetComponent <TextMesh>();
            textDisplay = this.GetComponent <GUIText>();
            if (textMesh != null)
            {
                textMesh.text = translation;
            }

            if (textDisplay != null)
            {
                textDisplay.text = translation;
            }
        }