// 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; } }
// 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; } }