Пример #1
0
        public void SetLevelInfo(NodeAddedEvent e, ProfileSummarySectionUINode sectionUI, ProfileScreenWithUserGroupNode profileScreen, [JoinByUser] UserStatisticsNode statistics, [JoinAll] RanksNamesNode rankNames)
        {
            GetUserLevelInfoEvent eventInstance = new GetUserLevelInfoEvent();

            base.ScheduleEvent(eventInstance, statistics);
            sectionUI.profileSummarySectionUI.SetLevelInfo(eventInstance.Info, rankNames.ranksNames.Names[eventInstance.Info.Level + 1]);
        }
        public void SetLevelInfo(NodeAddedEvent e, ProfileStatsSectionUINode sectionUI, [JoinAll] UserStatisticsNode statistics)
        {
            GetUserLevelInfoEvent eventInstance = new GetUserLevelInfoEvent();

            base.ScheduleEvent(eventInstance, statistics);
            sectionUI.profileStatsSectionUI.SetRank(eventInstance.Info);
        }