// Press Skill Randomize Button public void SkillRandomize() { int count = Enum.GetValues(typeof(Difficulty)).Length; int level = UnityEngine.Random.Range(1, count); playerSkill = (PlayerSkill)level; Debug.Log(playerSkill.ToString()); }
/// <summary> /// 获得技能id /// </summary> /// <param name="type"></param> /// <returns></returns> protected int GetSkillId(PlayerSkill type) { int id = default; if (!skillMapping.TryGetValue(type, out id)) { Debug.LogError("can not find this skillId : " + type.ToString()); } return(id); }
/// <summary> /// Sends the skill of the player to the server when initially logging in to seed MMR. /// </summary> /// <param name="PlayerSkill">The skill of the player</param> /// <returns></returns> public static Task <Object> ProcessELOQuestionaire(PlayerSkill PlayerSkill) { return(InvokeAsync <Object>("playerStatsService", "processEloQuestionaire", PlayerSkill.ToString())); }
public Task <object> ProcessEloQuestionaire(PlayerSkill playerSkill) { return(this.InvokeAsync <object>("playerStatsService", "processEloQuestionaire", (object)playerSkill.ToString())); }
/// <summary> /// Sends the skill of the player to the server when initially logging in to seed MMR. /// </summary> /// <param name="playerSkill">The skill of the player</param> /// <returns></returns> public Task <object> ProcessEloQuestionaire(PlayerSkill playerSkill) { return(InvokeAsync <object>("processEloQuestionaire", playerSkill.ToString())); }