A lot of older work
This commit is contained in:
@@ -151,7 +151,11 @@ namespace Marro.PacManUdon
|
||||
SetDirection(inputDirection + new Vector2(GridMoverTools.PositionToGrid(nextPosition).x - nextPosition.x, 0).normalized);
|
||||
}
|
||||
SetTargetDirection(inputDirection); // This is the direction most logic should assume pacman is moving, the actual direction may be different due to cornering
|
||||
networkManager.SendEventSoon(NetworkEventType.PacManTurn);
|
||||
|
||||
if (!followingPredefinedPath)
|
||||
{
|
||||
networkManager.SendEventSoon(NetworkEventType.PacManTurn);
|
||||
}
|
||||
}
|
||||
|
||||
return nextPosition;
|
||||
|
||||
Reference in New Issue
Block a user