MoTaForPSVita/Assets/DebugOpen.cs

24 lines
458 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}
}
}