Ejemplo n.º 1
0
    void Start()
    {
        InitUIText();
        item.SetActive(false);
        //btns.Add (ZhdouliBtn);
        btns.Add(LevelBtn);
        btns.Add(BabyBtn);
        btns.Add(HuoBtn);
        btns.Add(JingjiBtn);
        //namelabel.text = GamePlayer.Instance.InstName;
        levelLabel.text = LanguageManager.instance.GetValue("dengji");
        //zhiyeLabel.text = Profession.get ((JobType)GamePlayer.Instance.GetIprop(PropertyType.PT_Profession), GamePlayer.Instance.GetIprop(PropertyType.PT_ProfessionLevel)).jobName_;
        UIManager.SetButtonEventHandler(CloseBtn.gameObject, EnumButtonEvent.OnClick, OnClickClose, 0, 0);
        //UIManager.SetButtonEventHandler (ZhdouliBtn.gameObject, EnumButtonEvent.OnClick, OnClickJingji, 0, 0);
        UIManager.SetButtonEventHandler(LevelBtn.gameObject, EnumButtonEvent.OnClick, OnClickJingji, 1, 0);
        UIManager.SetButtonEventHandler(BabyBtn.gameObject, EnumButtonEvent.OnClick, OnClickJingji, 2, 0);
        UIManager.SetButtonEventHandler(HuoBtn.gameObject, EnumButtonEvent.OnClick, OnClickJingji, 3, 0);
        UIManager.SetButtonEventHandler(JingjiBtn.gameObject, EnumButtonEvent.OnClick, OnClickJingji, 4, 0);

        //GameManager.Instance.GetActorClone((ENTITY_ID)GamePlayer.Instance.Properties[(int)PropertyType.PT_AssetId], (ENTITY_ID)GamePlayer.Instance.WeaponAssetID, AssetLoadCallBack,null);
        ButtonSelect(0);
        NetConnection.Instance.requestLevelRank();
        RefreshLevelOk                     = LevelPaiOk;
        RefreshJJOk                        = JJPaiOk;
        RefreshBabyRankOk                  = BabyRankDateOK;
        RefreshEmpRankOk                   = EmployeeRankDateok;
        requestPlayerFFRankOk              = RequestPlayerFFRankOk;
        ChartsSystem.QueryBabyEventOk     += OnQueryBaby;
        ChartsSystem.queryEmployeeEventOk += OnqueryEmployee;
        ChartsSystem.QueryPlayerEventOk   += OnQueryPlayer;
    }
Ejemplo n.º 2
0
    public override void Destroyobj()
    {
        for (int i = 0; i < chatCellPool.Count; ++i)
        {
            Destroy(chatCellPool[i]);
        }

        UIManager.RemoveButtonEventHandler(CloseBtn.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(ZhdouliBtn.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(LevelBtn.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(BabyBtn.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(HuoBtn.gameObject, EnumButtonEvent.OnClick);
        UIManager.RemoveButtonEventHandler(JingjiBtn.gameObject, EnumButtonEvent.OnClick);

        RefreshLevelOk        = null;
        RefreshJJOk           = null;
        RefreshBabyRankOk     = null;
        RefreshEmpRankOk      = null;
        requestPlayerFFRankOk = null;

        ChartsSystem.QueryBabyEventOk     -= OnQueryBaby;
        ChartsSystem.queryEmployeeEventOk -= OnqueryEmployee;
        ChartsSystem.QueryPlayerEventOk   -= OnQueryPlayer;
    }
Ejemplo n.º 3
0
 private void OnClickClose(ButtonScript obj, object args, int param1, int param2)
 {
     Hide();
     RefreshJJOk    = null;
     RefreshLevelOk = null;
 }