// Use this for initialization void Start() { if (boxSize == null) { boxSize = GetComponentInParent <boxSizeAdjuster>(); } if (textSize == null) { textSize = GetComponent <textSizeAdjuster>(); } if (text == null) { text = GetComponent <TextMesh>(); } boxRenderer = textbox.GetComponent <MeshRenderer>(); if (defaultColor == null) { defaultColor = boxRenderer.material.color; } changed = false; }
// Use this for initialization void Start() { tsa = textObj.GetComponent <textSizeAdjuster>(); prevScale = 1; }