Disable

Disables the Ultimate Joystick.

using UnityEngine;

public class JoystickExample : MonoBehaviour
{
	// BE SURE TO ASSIGN THIS IN THE INSPECTOR //
	public UltimateJoystick joystick;
	
	void Update ()
	{
		// If the space key has been pressed...
    		if( Input.GetKeyDown( KeyCode.Space ) )
        	{
        		// Disable the joystick.
			joystick.Disable();
        	}
	}
}

Last updated