// When collided with a GhostController component, we try to catch PacMan using the CatchPacMan() function of the GhostController void CollideWithGhost(GhostController ghost) { ghost.CatchPacMan(); }