Example #1
0
 // Update is called once per frame
 void Update()
 {
     h  = UltimateJoystick.GetHorizontalAxis("WSJ");
     v  = UltimateJoystick.GetVerticalAxis("WSJ");
     t1 = UltimateJoystick.GetJoystickState("WSJ");
     t2 = UltimateJoystick.GetTapCount("WSJ");
 }
Example #2
0
        private void Update()
        {
            if (!m_Jump)
            {
                // Modified by Kaz Crowe. Get the count of the 'Camera' joystick to catch when the user has acheived the tap count.
                m_Jump = UltimateJoystick.GetTapCount("Look");
                //m_Jump = CrossPlatformInputManager.GetButtonDown("Jump");

                // If you want a nice and easy UI Button to use for your Mobile Games, please see the Ultimate Button package on the Unity Asset Store.
                // Asset Store Link: https://www.assetstore.unity3d.com/en/#!/content/28824
            }
        }