edx/assignment10final/Assets/Standard Assets/CrossPlatformInput/Scripts/InputAxisScrollbar.cs

18 lines
336 B
C#
Raw Permalink Normal View History

2022-11-10 21:56:29 -03:00
using System;
using UnityEngine;
namespace UnityStandardAssets.CrossPlatformInput
{
public class InputAxisScrollbar : MonoBehaviour
{
public string axis;
void Update() { }
public void HandleInput(float value)
{
CrossPlatformInputManager.SetAxis(axis, (value*2f) - 1f);
}
}
}