예제 #1
0
        public static void Stop(this ILocomotion locomotion)
        {
            Ensure.That(locomotion, nameof(locomotion)).IsNotNull();

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

            locomotion.Move(Vector3.Zero);
            locomotion.Rotate(Vector3.Zero);
        }