// Use this for initialization void Awake() { #if UNITY_EDITOR eControlState = eControlStates.Cont; #elif UNITY_ANDROID eControlState = eControlStates.VirtJoy; #else eControlState = eControlStates.Cont; #endif player = this.GetComponent <Player>(); if (SystemInfo.supportsGyroscope) { Input.gyro.enabled = true; bGyroSupported = true; } for (int i = 0; i < iSmoothness; i++) { lstPrevAccelSmooth.Add(Vector3.zero); } if (UIManager.manager != null) { UIManager.manager.SetPlayerInput(this); } else { bSetUIMan = true; } }
public void ChangeControl(eControlStates state) { eControlState = state; }