Guest User

Untitled

a guest
May 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1.     public class Paddle
  2.     {
  3.         Texture2D name;
  4.         Vector2 position;
  5.         Vector2 speed;
  6.  
  7.         public Paddle(String startingName, int startingX, int startingY, int startingSpeed)
  8.         {
  9.             name = startingName;
  10.             position = Vector2(startingX, startingY);
  11.             speed = new Vector2(startingSpeed);
  12.         }
  13.  
  14.         public void SetName(string newName)
  15.         {
  16.             name = newName;
  17.         }
  18.  
  19.         public void SetPosition(Vector2 newPosition)
  20.         {
  21.             position = newPosition;
  22.         }
  23.  
  24.         public void SetSpeed(Vector2 newSpeed)
  25.         {
  26.             speed = newSpeed;
  27.         }
  28.     }
Add Comment
Please, Sign In to add comment