Beispiel #1
0
 void lerpPacMan()
 {
     _pacMan.Position = Vector2s.Lerp(_pacPositions.Start, _pacPositions.End, _pacTimer.Progress);
 }
Beispiel #2
0
        void lerpGhost(AttractGhost ghost)
        {
            StartAndEndPos positions = _ghostPositions[ghost.NickName];

            ghost.Position = Vector2s.Lerp(positions.Start, positions.End, _ghostTimer.Progress);
        }