internal static void InternalOnExperienceChanged(PlayerSkills skills, uint oldExperience) { BasePlayerEvents instance = skills.GetComponent <BasePlayerEvents>(); BasePlayer rp = skills.player.ToBasePlayer(); OnPlayerUpdateExperience.TryInvoke(rp, skills.experience); instance.OnUpdateExperience.TryInvoke(rp, skills.experience); }
internal static void InternalOnExperienceChanged(PlayerSkills skills, uint oldExerience) { UnturnedPlayerEvents instance = skills.GetComponent <UnturnedPlayerEvents>(); UnturnedPlayer rp = UnturnedPlayer.FromPlayer(skills.player); OnPlayerUpdateExperience.TryInvoke(rp, skills.experience); instance.OnUpdateExperience.TryInvoke(rp, skills.experience); }