public void CmdUpdatePlayerSkillPoints() { Debug.Log("CMD: Update Player Skillpoints"); PlayerSkills playerSkills = playerGameObject.GetComponent <PlayerSkills>(); if (playerSkills != null) { int[] playerSkillPoints = playerSkills.GetPlayerSkills(); int newSkillPointCount = playerSkills.GetCurrentSkillPoint(); RpcUpdatePlayerSkillPoints(newSkillPointCount, playerSkillPoints); } }