mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 09:35:26 +00:00
32 lines
760 B
C#
32 lines
760 B
C#
using QSB.Instruments.QSBCamera;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.Instruments
|
|
{
|
|
public class InstrumentsManager : MonoBehaviour
|
|
{
|
|
public static InstrumentsManager Instance;
|
|
|
|
private void Awake()
|
|
{
|
|
Instance = this;
|
|
gameObject.AddComponent<CameraManager>();
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Keypad9))
|
|
{
|
|
if (CameraManager.Instance.Mode == CameraMode.FirstPerson)
|
|
{
|
|
CameraManager.Instance.SwitchTo3rdPerson();
|
|
}
|
|
else
|
|
{
|
|
CameraManager.Instance.SwitchTo1stPerson();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|