public void Awake()
        {
            //获取父级"包"
            FUI Sekialogin = this.GetParent <FUI>();

            //初始化数据
            this.AccountInput  = Sekialogin.Get("AccountInput");
            this.PasswordInput = Sekialogin.Get("PasswordInput");
            this.Prompt        = Sekialogin.Get("Prompt");
            this.isLogining    = false;
            this.isRegistering = false;

            //添加事件
            Sekialogin.Get("LoginButton").GObject.asButton.onClick.Add(() => LoginBtnOnClick());
            Sekialogin.Get("RegisterButton").GObject.asButton.onClick.Add(() => RegisterBtnOnClick());
        }
        public override void Awake(MainItfViewComponent self)
        {
            FUI FGUICompunt = self.GetParent <FUI>();

            self.m_point = FGUICompunt.Get("point");

            self.m_BoomPoint = FGUICompunt.Get("BoomPoint");

            self.m_HP = FGUICompunt.Get("hp");

            TurretComponent.UpdatePos += self.UpdateBoomPoint;

            Tank.m_hpChange += self.HpChange;

            self.Awake();
        }
示例#3
0
 public static bool Open(FUI ui)
 {
     return(true);
 }
示例#4
0
 public static bool Close(FUI ui)
 {
     return(true);
 }