private void Movement_performed(UnityEngine.Experimental.Input.InputAction.CallbackContext context) { Debug.Log("movement"); GameObject plane = GameObject.CreatePrimitive(PrimitiveType.Plane); GameObject cube = GameObject.CreatePrimitive(PrimitiveType.Cube); cube.transform.position = new Vector3(0, 0.5f, 0); GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphere); sphere.transform.position = new Vector3(0, 1.5f, 0); sphere.GetComponent <Renderer>().material = selected; GameObject capsule = GameObject.CreatePrimitive(PrimitiveType.Capsule); capsule.transform.position = new Vector3(2, 1, 0); GameObject cylinder = GameObject.CreatePrimitive(PrimitiveType.Cylinder); cylinder.transform.position = new Vector3(-2, 1, 0); }
private void A_performed(UnityEngine.Experimental.Input.InputAction.CallbackContext obj) { Debug.Log($"A performed [{obj.control.device.id}]{obj.control.displayName} : {(obj.control.device is Gamepad ? "Gamepad " : "Other")}"); }
private void Movement_performed(UnityEngine.Experimental.Input.InputAction.CallbackContext obj) { Debug.Log("movement"); }
private void Pause_performed(UnityEngine.Experimental.Input.InputAction.CallbackContext obj) { Pause(); }