static void Main(string[] args) { PacMan p = new PacMan(); Ghost g = new Ghost(p); p.PacManState = PacManState.Moving; p.PacManState = PacManState.Stopped; p.PowerUp(); Console.ReadKey(); }
public Ghost(PacMan p) { p.Attach(this); }