Exemplo n.º 1
0
 internal Panel(GameObject parent, bool visible)
     : base(Addon.Instantiate(parent, "Panel"), visible)
 {
     RectTransform.Anchor = new Tuple2(0.5f, 0.5f);
 }
Exemplo n.º 2
0
 internal Text(GameObject parent, string content, bool visible)
     : base(Addon.Instantiate(parent, "Text"), visible)
 {
     text    = GameObject.GetComponent <UnityEngine.UI.Text> ();
     Content = content;
 }
Exemplo n.º 3
0
 public void Remove()
 {
     CheckNotRemovable();
     Addon.Remove(this);
 }