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