Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SpeedDirections
- {
- public Vector3 UpSpeed;
- public Vector3 LeftSpeed;
- public Vector3 DownSpeed;
- public Vector3 RightSpeed;
- public SpeedDirections(float speed)
- {
- UpSpeed = new Vector3(0, speed * Time.deltaTime);
- LeftSpeed = new Vector3(speed * Time.deltaTime, 0);
- DownSpeed = new Vector3(0, (speed * -1) * Time.deltaTime);
- RightSpeed = new Vector3((speed * -1) * Time.deltaTime, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement