Exemplo n.º 1
0
    // 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());
    }
Exemplo n.º 2
0
    /// <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);
    }
Exemplo n.º 3
0
 /// <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()));
 }
Exemplo n.º 4
0
 public Task <object> ProcessEloQuestionaire(PlayerSkill playerSkill)
 {
     return(this.InvokeAsync <object>("playerStatsService", "processEloQuestionaire", (object)playerSkill.ToString()));
 }
Exemplo n.º 5
0
 /// <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()));
 }