Enable

Enables 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 ) )
        	{
        		// Enable the joystick.
			joystick.Enable();
        	}
	}
}

Last updated