ControllerTesting.cs (360B)
1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class ControllerTesting : MonoBehaviour { 6 7 // Use this for initialization 8 void Start () { 9 10 } 11 12 // Update is called once per frame 13 void Update () { 14 if (Input.GetKeyDown(KeyCode.JoystickButton0)) 15 { 16 Debug.Log("He;wd"); 17 } 18 19 } 20 }