UI button is not working

I cannot seem to make my jump button work, my right and left button do work but for some reason jump does not work. I followed steps from this video exactly. Any ideas?

And yes, I am developing my project for the Android Platform

No, without seeing what you have done or your code, we have no idea what is wrong.

I copied everything from the video but, I don’t mind showing my progress so far. Take a look:


This is the jump button in the inspector with an event trigger and a button handler script. Here is the script:

susing System;
using UnityEngine;

namespace UnityStandardAssets.CrossPlatformInput
{
    public class ButtonHandler : MonoBehaviour
    {

        public string Name;

        void OnEnable()
        {

        }

        public void SetDownState()
        {
            CrossPlatformInputManager.SetButtonDown(Name);
        }


        public void SetUpState()
        {
            CrossPlatformInputManager.SetButtonUp(Name);
        }


        public void SetAxisPositiveState()
        {
            CrossPlatformInputManager.SetAxisPositive(Name);
        }


        public void SetAxisNeutralState()
        {
            CrossPlatformInputManager.SetAxisZero(Name);
        }


        public void SetAxisNegativeState()
        {
            CrossPlatformInputManager.SetAxisNegative(Name);
        }

        public void Update()
        {

        }
    }
}

This is a fresh piece from the Standard Assets.

This is everything related to the Jump Button and I see no errors in the Console. Please do not abandon me.

Stick some Debug.Log in your set state down and up methods to check they are working and then look at whatever method you have running when that button is down. Also check you have a Jump button defined in the project settings.

Okay, that means I need to attch my script to an empty game object. But what do I write in it? (Sorry if I am giving you a headache, I am new and all I can do is read scripts and learn their meanings and I never had to write a script of this type). (In other words: Nani?)

The script is already on the object you pictured. Just put some logs in the up and down methods. Something like Debug.Log(Name + " button down"); to check that script is working. If it is, check the method you call when that button is in the down state.

This is what I came up with

using UnityEngine;
using System.Collections;

public class DebuggerComponent : MonoBehaviour
{

   void Bugdetect()
   {
//I think I need to add if inputgettouch or something, i am not sure what to type and if that does go there, do i add "then" below
       Debug.Log(Result + " button down");
   }
}

Is it correct, and what do I add it to?

Okay, nevermind that. I used this script:

using UnityEngine;
using System.Collections;

public class DebuggerComponent : MonoBehaviour
{
    void Update()
    {
        if (Input.GetMouseButton(0))
        {
            Debug.Log("Pressed left click.");
        }
}

I use Unity Remote (5) with my Android Games, and when clicked on my phone, I did get the debug that: “Pressed left click.” from the Debug.Log. So, when I press the jump button I get the message, but I noticed something weird, (even though I attached it to the jump button) it applied to anyposition I click on the screen. Okay, so what do I do now?

Hello, anyone?
Is anyone even going to help me

As I said, put some Debug.Log in your methods which that button is calling. Just logging when the mouse is clicked is only going to tell you that the mouse is clicked, it isn’t telling you if your button logic is working.

Funny story, I found some problem in the event trigger and fixed it. Now, the very last thing that I need to close this case is of course, the problem that comes with every jump script, infinite jumps. Now, I am just giving you an update. I will find some video or something (CodeMonkey has a video on his channel). But, just in case if something goes wrong (again), please provide me assistance with it.


Update: Every single video and forum (that I opened) are for PC. So, any idea what to do?

CASE CLOSED
NOTE: THIS THREAD IS FOR JUMP BUTTON MOVEMENT
IT MAY NOT HELP OUT, BUT IT IS WORTH A SHOT