1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| 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);
| }
| }
| }
|
|