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