Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Paddle
- {
- Texture2D name;
- Vector2 position;
- Vector2 speed;
- public Paddle(String startingName, int startingX, int startingY, int startingSpeed)
- {
- name = startingName;
- position = Vector2(startingX, startingY);
- speed = new Vector2(startingSpeed);
- }
- public void SetName(string newName)
- {
- name = newName;
- }
- public void SetPosition(Vector2 newPosition)
- {
- position = newPosition;
- }
- public void SetSpeed(Vector2 newSpeed)
- {
- speed = newSpeed;
- }
- }
Add Comment
Please, Sign In to add comment