Advertisement
CassataGames

SpeedDirections Class

Mar 22nd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1.     public class SpeedDirections
  2.     {
  3.         public Vector3 UpSpeed;
  4.         public Vector3 LeftSpeed;
  5.         public Vector3 DownSpeed;
  6.         public Vector3 RightSpeed;
  7.  
  8.         public SpeedDirections(float speed)
  9.         {
  10.             UpSpeed = new Vector3(0, speed * Time.deltaTime);
  11.             LeftSpeed = new Vector3(speed * Time.deltaTime, 0);
  12.             DownSpeed = new Vector3(0, (speed * -1) * Time.deltaTime);
  13.             RightSpeed = new Vector3((speed * -1) * Time.deltaTime, 0);
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement