projekt-bombs/Assets/Standard Assets/CrossPlatformInput/Scripts/InputAxisScrollbar.cs
2019-06-29 14:06:50 +03:00

17 lines
353 B
C#

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);
}
}
}