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); }; }
protected override void OnDestroy() { URemoteData.CancelListeningParam(InfoNameDefs.AvatarLevel, ShowLevel); WebSocketConnector.Instance.OnCloseImmediately(); }
protected override void OnDestroy() { URemoteData.CancelListeningParam(InfoNameDefs.AvatarLevel, ShowLevel); }
protected override void OnDestroy() { URemoteData.CancelListeningParam(InfoNameDefs.AvatarGold, RefreshGold); }
protected override void OnDestroy() { URemoteData.CancelListeningParam(InfoNameDefs.CurExp, ShowCurExp); URemoteData.CancelListeningParam(InfoNameDefs.MaxExp, ShowCurExp); }