Guest User

Untitled

a guest
Nov 26th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. namespace Skatebirb.Gameplay
  2. {
  3. public class ControlBoard : MonoBehaviour, ISkateboardControl
  4. {
  5. private ISkateboardGateway targetBoard;
  6.  
  7. private Rewired.Player playerInput;
  8.  
  9. private const float SteeringPushDeadzone = 0.2f;
  10.  
  11. private FlashbackRecorder gifRecorderRef;
  12. private bool GIFIsSaving = false;
  13. private float GIFSaveProgress = 0f;
  14. private static bool GIFButtonDown = false;
  15. public static bool IsGIFButtonDown() { return GIFButtonDown; }
  16.  
  17. #region SkateboardControl stuff
  18. public float SteeringInput
  19. {
  20. get
  21. {
  22. if (!ValidateReferences()) { return 0f; }
  23. return playerInput.GetAxis(Axis.Turning);
  24. }
  25. }
  26. public float TwistInput
  27. {
  28. get
  29. {
  30. if (!ValidateReferences()) { return 0f; }
  31. return playerInput.GetAxis(Axis.Twist);
  32. }
  33. }
  34. public float PushingInput
  35. {
  36. get
  37. {
  38. if (!ValidateReferences()) { return 0f; }
  39. return playerInput.GetAxis(Axis.Pushing);
  40. }
  41. }
  42. #endregion
Advertisement
Add Comment
Please, Sign In to add comment