public static void Stop(this ILocomotion locomotion) { Ensure.That(locomotion, nameof(locomotion)).IsNotNull(); locomotion.Move(Vector3.Zero); locomotion.Rotate(Vector3.Zero); }
public static void Stop([NotNull] this ILocomotion locomotion) { Ensure.Any.IsNotNull(locomotion, nameof(locomotion)); locomotion.Move(Vector3.Zero); locomotion.Rotate(Vector3.Zero); }