Button Onclick not working with public functions - UNITY3D C#
<p>I'm making an Android game, I assigned <code>public onClick</code> functions to three buttons on the canvas and they're not working on my Android Phone or by clicking them on my computer. Here's what it looks like:</p>

<p><a href="https://i.stack.imgur.com/r9I5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r9I5e.png" alt="image"></a></p>

<p>And here is my code for the ball, as you can see I'm trying to make the ball move forward with the <code>ForwardSLASHleft</code> function, backwards with the <code>BackwardsSlashRight</code> function, and start with the <code>StartButton</code> function. But none of them are working. </p>

<pre><code>using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ballScript : MonoBehaviour {
    Rigidbody rb;
    public float thrust;
    public Button left;
    public Button right;
    public Button startB;
    // Use this for initialization
    void Start () {
        rb = GetComponent&lt;Rigidbody&gt;();
        gameObject.SetActive(false);

    }

    // Update is called once per frame
    void Update () {
        gameObject.SetActive(true);

    }

    public void StartButton()
    {
        gameObject.SetActive(true);
        left.enabled = true;
        right.enabled = true;
        startB.enabled = false;

    }

    public void forwardSLASHleft()
    {
        rb.AddForce(transform.right * -1 * thrust);
    }

    public void backwardsSLASHright()
    {
        rb.AddForce(transform.right * 1 * thrust);
    }
}
</code></pre>