Last active
June 19, 2021 11:44
-
-
Save mstfmrt07/e82ad7db09c0343f6fbad4300800639f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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