Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Skatebirb.Gameplay
- {
- public class ControlBoard : MonoBehaviour, ISkateboardControl
- {
- private ISkateboardGateway targetBoard;
- private Rewired.Player playerInput;
- private const float SteeringPushDeadzone = 0.2f;
- private FlashbackRecorder gifRecorderRef;
- private bool GIFIsSaving = false;
- private float GIFSaveProgress = 0f;
- private static bool GIFButtonDown = false;
- public static bool IsGIFButtonDown() { return GIFButtonDown; }
- #region SkateboardControl stuff
- public float SteeringInput
- {
- get
- {
- if (!ValidateReferences()) { return 0f; }
- return playerInput.GetAxis(Axis.Turning);
- }
- }
- public float TwistInput
- {
- get
- {
- if (!ValidateReferences()) { return 0f; }
- return playerInput.GetAxis(Axis.Twist);
- }
- }
- public float PushingInput
- {
- get
- {
- if (!ValidateReferences()) { return 0f; }
- return playerInput.GetAxis(Axis.Pushing);
- }
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment