Ejemplo n.º 1
0
 public override void InitPanel()
 {
     base.InitPanel();
     drag          = gameObject.FindChild("drag").transform as RectTransform;
     my_hor_Scroll = gameObject.FindChild("my_hor_Scroll").GetComponent <MyHorizontalLayoutGroup>();
     content       = gameObject.FindChild("content").GetComponent <MyHorizontalLayoutGroup>();
     Image_fade    = gameObject.FindChild("Image_fade").GetComponent <MyImage>();
 }
Ejemplo n.º 2
0
 public override void OnInit()
 {
     base.OnInit();
     go_top           = gameObject.FindChild("top");
     go_down          = gameObject.FindChild("down");
     text             = go_top.FindChild <MyText>("text");
     layoutGroup      = go_down.GetComponent <MyHorizontalLayoutGroup>();
     text.IsAutoPoint = true;
 }