Example #1
0
 /// <summary>
 /// 界面初始化
 /// </summary>
 /// <param name="uiForm">真正的UI窗口</param>
 /// <param name="userData">用户数据</param>
 public override void OnInit(HotfixForm uiForm, object userData)
 {
     base.OnInit(uiForm, userData);
     btnToLogOn           = uiForm.GetTransType(0) as Button;
     imgMiaoShu1          = uiForm.GetTransType(1) as Image;
     imgMiaoShu2          = uiForm.GetTransType(2) as Image;
     btnDeleteRole        = uiForm.GetTransType(3) as Button;
     btnStart             = uiForm.GetTransType(4) as Button;
     RoleItemView1        = uiForm.GetTransType(5) as Transform;
     RoleItemView2        = uiForm.GetTransType(6) as Transform;
     RoleItemView3        = uiForm.GetTransType(7) as Transform;
     RoleItemView4        = uiForm.GetTransType(8) as Transform;
     ButtonCreateRole1    = uiForm.GetTransType(9) as Button;
     ButtonCreateRole2    = uiForm.GetTransType(10) as Button;
     ButtonCreateRole3    = uiForm.GetTransType(11) as Button;
     ButtonCreateRole4    = uiForm.GetTransType(12) as Button;
     m_SelectRoleFormCtrl = new SelectRoleFormCtrl();
     m_SelectRoleFormCtrl.OnInit(this, userData);
 }
Example #2
0
 /// <summary>
 /// 界面初始化
 /// </summary>
 /// <param name="uiForm">真正的UI窗口</param>
 /// <param name="userData">用户数据</param>
 public override void OnInit(HotfixForm uiForm, object userData)
 {
     base.OnInit(uiForm, userData);
     UnityEngine.Debug.Log("初始化UI");
     Text = uiForm.GetTransType(0) as Text;
 }