public UI(Scene scene, UIType uiType, UI parent, GameObject gameObject) : base(EntityType.UI)
{
this.Scene = scene;
this.UIType = uiType;
gameObject.transform.SetParent(parent?.GameObject.transform);
this.GameObject = gameObject;
this.AddComponent<ChildrenComponent<UI>>();
}
}