Example #1
0
    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);
     }
 }
Example #3
0
 public void TeardownWorldTextBox(WorldTextBox textBox)
 {
     Destroy(textBox.gameObject);
 }