diff --git a/MiraAPI.Example/Roles/ChameleonRole.cs b/MiraAPI.Example/Roles/ChameleonRole.cs index ec2756a..69880d9 100644 --- a/MiraAPI.Example/Roles/ChameleonRole.cs +++ b/MiraAPI.Example/Roles/ChameleonRole.cs @@ -23,11 +23,16 @@ public class ChameloenRole : CrewmateRole, ICustomRole public override void Initialize(PlayerControl player) { Player = player; - Logger.Error("Initializing ChamelonRole for player: " + player.PlayerId); + Logger.Info("Initializing ChamelonRole for player: " + player.PlayerId); } public void FixedUpdate() { + if (!Player) + { + return; + } + if (Player.MyPhysics.Velocity.magnitude > 0) { var rend = Player.cosmetics.currentBodySprite.BodySprite;