public async Task SyncSkillHandler(SyncSkillMessage message, Player player) { try { await player.GetComponent <SkillComponent>().SyncUserSkillAsync(message); } catch (Exception e) { Logger.Error(e); } }
public void SyncSkillHandler(SyncSkillMessage message, Player player) { try { Task.Run(() => player.GetComponent <SkillComponent>().SyncUserSkillAsync(message)); } catch (Exception e) { Logger.Error($"Skill Syncing failed: {e.Message}\n{e.StackTrace}"); } }
public async Task SyncSkillHandler(SyncSkillMessage message, Player player) { player.GetComponent <SkillComponent>().SyncUserSkillAsync(message); }