Exemplo n.º 1
0
    protected override void OnAwakeInitUI()
    {
        mHeadIcon     = CacheTrans.FindComponent <UITexture>("Root/HeadIcon");
        mSexIcon      = CacheTrans.FindComponent <UISprite>("Root/HeadIcon/SexIcon");
        mLabelName    = CacheTrans.FindComponent <UILabel>("Root/LabelName");
        mLabelId      = CacheTrans.FindComponent <UILabel>("Root/LabelId");
        mLabelIp      = CacheTrans.FindComponent <UILabel>("Root/LabelIp");
        mLabelAddress = CacheTrans.FindComponent <UILabel>("Root/LabelAddress");
        CacheTrans.GetUIEventListener("MaskCollider").onClick += OnClosedClick;

        mPropObject = CacheTrans.Find("RootRight").gameObject;

        GPS._instence.OnLocate += OnLocate;
        GPS._instence.OnError  += OnError;

        if (mUIMainModel == null)
        {
            mUIMainModel = UIModelMgr.Instance.GetModel <UIMainModel>();
        }
    }