Working via NetworkManager
This commit is contained in:
@@ -5,9 +5,9 @@ namespace Marro.PacManUdon
|
||||
|
||||
public static class GridMoverTools
|
||||
{
|
||||
public static Vector2 GetNextPosition(Vector2 currentPosition, Vector2 direction, float speed)
|
||||
public static Vector2 GetNextPosition(Vector2 currentPosition, Vector2 direction, float speed, float deltaTime)
|
||||
{
|
||||
return currentPosition + direction * speed * Time.deltaTime;
|
||||
return currentPosition + direction * speed * deltaTime;
|
||||
}
|
||||
|
||||
public static Vector2 PositionToGrid(Vector2 position)
|
||||
|
||||
Reference in New Issue
Block a user