MoTaForPSVita/Assets/DebugOpen.cs

24 lines
458 B
C#
Raw Permalink Normal View History

using UnityEngine;
public class DebugOpen : MonoBehaviour {
public Debugger debugger;
void Awake()
{
debugger.gameObject.SetActive(false);
}
// Update is called once per frame
void Update () {
//按住上方向键+三角建再按下X键
if (Input.GetKey(KeyCode.JoystickButton3) && Input.GetKey(KeyCode.JoystickButton8))
{
if (Input.GetKeyDown(KeyCode.JoystickButton0))
{
debugger.gameObject.SetActive(true);
}
}
}
}