// Start is called before the first frame update void Start() { cup = GetComponent <Cup>(); tb = Instantiate(textBoxPrefab, transform); tb.transform.position += textBoxOffset; }
// Start is called before the first frame update void Start() { tb = Instantiate(textBoxPrefab, transform); tb.transform.position += textBoxOffset; }