public WorldTextBox CreateWorldTextBox(string text, Vector3 position) { WorldTextBox textBox = Instantiate(worldTextBoxPrefab); textBox.Setup(text, position, textBoxSize); return(textBox); }
void OnMouseUp() { if (hasTextBox) { ui.TeardownWorldTextBox(textBox); } else { textBox = ui.CreateWorldTextBox(displayedInfo, transform.position + infoOffset); } }
public void TeardownWorldTextBox(WorldTextBox textBox) { Destroy(textBox.gameObject); }