using System; namespace ET { [ActorMessageHandler] public class C2M_GetMainUISettingHandler : AMActorLocationRpcHandler { protected override async ETTask Run(Unit unit, C2M_GetMainUISetting request, M2C_GetMainUISetting response, Action reply) { UserSetting setting = unit.GetComponent(); if (setting == null) { Log.Error("setting == null"); reply(); return; } response.IsAutoSkill = setting.IsAutoSkill; response.IsDisplayOthers = setting.IsDisplayOthers; MainUIHelper.GetMainUISlotInfo(setting,response.MainUISlotList); reply(); await ETTask.CompletedTask; } } }