Пример #1
0
 public async Task SyncSkillHandler(SyncSkillMessage message, Player player)
 {
     try
     {
         await player.GetComponent <SkillComponent>().SyncUserSkillAsync(message);
     }
     catch (Exception e)
     {
         Logger.Error(e);
     }
 }
Пример #2
0
 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}");
     }
 }
Пример #3
0
 public async Task SyncSkillHandler(SyncSkillMessage message, Player player)
 {
     player.GetComponent <SkillComponent>().SyncUserSkillAsync(message);
 }