internal static void InternalOnStanceChanged(PlayerStance stance) { BasePlayerEvents instance = stance.GetComponent <BasePlayerEvents>(); BasePlayer rp = stance.player.ToBasePlayer(); OnPlayerUpdateStance.TryInvoke(rp, (byte)stance.stance); instance.OnUpdateStance.TryInvoke(rp, (byte)stance.stance); }
internal static void InternalOnStanceChanged(PlayerStance stance) { UnturnedPlayerEvents instance = stance.GetComponent <UnturnedPlayerEvents>(); UnturnedPlayer rp = UnturnedPlayer.FromPlayer(stance.player); OnPlayerUpdateStance.TryInvoke(rp, (byte)stance.stance); instance.OnUpdateStance.TryInvoke(rp, (byte)stance.stance); }