in UltraFrogRoyale/Assets/GamePlayerController.cs [95:116]
void Update()
{
tongue.gameObject.SetActive(tongueDeployed);
if (isLocalPlayer)
{
// Horizontal and Vertical are the arrow buttons
Vector2 inputVector = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));
motionVector = inputVector.normalized * speed;
if (inputVector != Vector2.zero)
{
currentAngle = Mathf.Atan2(inputVector.y, inputVector.x) * Mathf.Rad2Deg;
}
// Jump is the spacebar in Unity default
float fireInputValue = Input.GetAxisRaw("Jump");
if (fireInputValue != 0.0f)
{
CmdFireTongue();
}
}
}