Movement/IMovementExtensions.cs

14 lines
401 B
C#
Raw Normal View History

2021-12-23 12:41:01 +03:00
using UnityEngine;
namespace Syntriax.Modules.Movement
{
public static class IMovementExtensions
{
public static void Move(this IMovement movement, Vector2 moveVector)
=> movement.Move(moveVector.x, moveVector.y);
public static void Move(this IMovement movement, Vector3 moveVector)
=> movement.Move(moveVector.x, moveVector.y, moveVector.z);
}
}