public static bool skiing = false; // tracking: whether the player is currently skiing // methods // // method: update the player body collider's friction based on whether it is skiing // public static void updateBodyFriction() { if (skiing) { targetBodyCollider.material = skiingSettings.skiingFrictionToUse(); } else { targetBodyCollider.material = frictionNonskiing; } }
public static bool skiing = false; // tracking: whether the player is currently skiing // methods // // method: update the player body collider's friction based on whether it is skiing // public static void updateBodyFriction() => MoonMotionBody.capsuleCollider.material = skiing ? SkiingSettings.skiingFrictionToUse() : SkiingSettings.frictionNonskiing;