Ghost - PacMan collision detection
This commit is contained in:
@@ -213,13 +213,13 @@ namespace Marro.PacManUdon
|
||||
|
||||
private void CheckNewTile(Vector2 position, Vector2 nextPosition)
|
||||
{
|
||||
var pellet = pelletManager.EatAtTile(position, nextPosition);
|
||||
var eatResult = pelletManager.PacManMoveToTile(position, nextPosition);
|
||||
|
||||
if (pellet == PelletType.Pellet)
|
||||
if (eatResult == EatResult.Pellet)
|
||||
{
|
||||
freezeSeconds = 0.0166666666666667f;
|
||||
}
|
||||
else if (pellet == PelletType.PowerPellet)
|
||||
else if (eatResult == EatResult.PowerPellet)
|
||||
{
|
||||
freezeSeconds = freezeSeconds = 0.05f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user