public HideLayer(LayerParam param) : base(param) { if (Node != null) { Node.gameObject.SetActive(false); } }
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; } }