Пример #1
0
    protected override void InitComponents()
    {
        expProgress  = FindWidget <Image>("expProgress");
        textExp      = FindWidget <Text>("textExp");
        textExp.text = "";

        URemoteData.ListeningParam(InfoNameDefs.CurExp, ShowCurExp);
        URemoteData.ListeningParam(InfoNameDefs.MaxExp, ShowCurExp);

        RefreshUI();

        gameObj.AddComponent <UOnDestroy>().actionOnDestroy = () =>
        {
            URemoteData.CancelListeningParam(InfoNameDefs.CurExp, ShowCurExp);
            URemoteData.CancelListeningParam(InfoNameDefs.MaxExp, ShowCurExp);
        };
    }
Пример #2
0
 protected override void OnDestroy()
 {
     URemoteData.CancelListeningParam(InfoNameDefs.AvatarLevel, ShowLevel);
     WebSocketConnector.Instance.OnCloseImmediately();
 }
Пример #3
0
 protected override void OnDestroy()
 {
     URemoteData.CancelListeningParam(InfoNameDefs.AvatarLevel, ShowLevel);
 }
Пример #4
0
 protected override void OnDestroy()
 {
     URemoteData.CancelListeningParam(InfoNameDefs.AvatarGold, RefreshGold);
 }
Пример #5
0
 protected override void OnDestroy()
 {
     URemoteData.CancelListeningParam(InfoNameDefs.CurExp, ShowCurExp);
     URemoteData.CancelListeningParam(InfoNameDefs.MaxExp, ShowCurExp);
 }