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