Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int GoWest()
- {
- if (position_x > -5)
- {
- position_x = position_x - 1;
- return position_x;
- }
- else
- {
- Console.WriteLine("Can't go left");
- return position_x;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement