Пример #1
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;
            }
        }
Пример #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;
            }
        }