示例#1
0
 public HideLayer(LayerParam param) : base(param)
 {
     if (Node != null)
     {
         Node.gameObject.SetActive(false);
     }
 }
示例#2
0
 public LayerBase(LayerParam param) : this()
 {
     this.order = param.Order;
     node       = param.Layer ? param.Layer : new GameObject().AddComponent <RectTransform>();
     if (!string.IsNullOrEmpty(param.Name))
     {
         node.name = param.Name;
     }
 }