Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1.                                 foreach (object e in entities)
  2.                                 {
  3.                                    
  4.                                     if (e is Ghost)
  5.                                     {
  6.                                         Console.WriteLine("hit");
  7.                                         ghost.pos.Y = ghost.prevPos.Y;
  8.                                         ghost.pos.X = ghost.prevPos.X;
  9.  
  10.                                     }
  11.  
  12.                                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement