Ejemplo n.º 1
0
 protected View(string viewName, ViewParent parent, int x, int y)
 {
     ViewName   = viewName;
     ViewParent = parent;
     InitGameObject();
     parent?.AddView(this);
     if (viewName != null)
     {
         GetViewObject().name = viewName;
     }
     else
     {
         ViewName = GetViewObject().name;
     }
     Position = new Vector3(x, y);
     Draw     = true;
     Scale    = Vector3.one;
     OnPostInit();
 }
Ejemplo n.º 2
0
 public virtual void SetParent(ViewParent parent)
 {
     ViewParent = parent;
     parent.AddView(this);
 }