예제 #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);
 }