File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using BNG;
public class InputController : MonoBehaviour
{
public PlayManager playManager;
public UIManager uIManager;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//if (InputBridge.Instance.RightTriggerDown || Input.GetKeyDown(KeyCode.U))
//{
//}
//if (InputBridge.Instance.LeftTriggerDown )
//{
//}
//if (InputBridge.Instance.RightTriggerDown || Input.GetKeyDown(KeyCode.U))
//{
//}
//if (InputBridge.Instance.LeftGripDown && InputBridge.Instance.RightGripDown)
//{
// playManager.ResetAll();
//}
//if (InputBridge.Instance.YButtonDown)
//{
// playManager.SetGotoFront();
//}
if (InputBridge.Instance.LeftTriggerDown)
{
playManager.ResetAll();
}
if (InputBridge.Instance.BButtonUp || Input.GetKeyDown(KeyCode.C))
{
// playManager.SetPlayOrPause();
//playManager.SetGotoEnd();
playManager.SetLoopEnd();
}
if(InputBridge.Instance.AButtonUp || Input.GetKeyDown(KeyCode.A))
{
//playManager.ResetLoop();
playManager.SetSpeedFast();
}
if (InputBridge.Instance.YButtonUp || Input.GetKeyDown(KeyCode.Y))
{
playManager.SetLoopFront();
}
if (InputBridge.Instance.XButtonUp || Input.GetKeyDown(KeyCode.X))
{
playManager.SetSpeedSlow();
}
if (InputBridge.Instance.StartButton || Input.GetKeyDown(KeyCode.Escape))
{
UnityEngine.SceneManagement.SceneManager.LoadScene(0);
}
//if (Input.GetKeyDown(KeyCode.A))
//{
// playManager.SetSpeedSlow();
//}
//if (Input.GetKeyDown(KeyCode.B))
//{
// playManager.SetSpeedFast();
//}
//if(Input.GetKeyDown(KeyCode.B))
//{
// playManager.SetPlayOrPause();
//}
}
}