Skip to content

Instantly share code, notes, and snippets.

@mstfmrt07
Last active June 19, 2021 11:44
Show Gist options
  • Save mstfmrt07/e82ad7db09c0343f6fbad4300800639f to your computer and use it in GitHub Desktop.
Save mstfmrt07/e82ad7db09c0343f6fbad4300800639f to your computer and use it in GitHub Desktop.
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
public float rollDuration = 1f;
private bool isRolling;
public Transform pivot;
public InputManager InputManager;
private void Awake()
{
Initialize();
}
void Initialize()
{
InputManager.onSwipeDetected += Roll;
isRolling = false;
}
private void Roll(Direction direction)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment