18 lines
336 B
C#
Executable File
18 lines
336 B
C#
Executable File
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);
|
|
}
|
|
}
|
|
}
|