Why is my button not working?

I have a button with an Event Trigger with a script attached, but when I touch the button (on a mobile device) it doesn’t work. Is there something wrong with my script, or do I need to add something to the button?
This is my script:`using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TapToStart : MonoBehaviour {

public GameObject homeCanvas;
public GameObject playCanvas;

void Start () {
	
	homeCanvas = GameObject.Find("HomeScreen").GetComponent<GameObject> ();
	playCanvas = GameObject.Find("PlayCanvas").GetComponent<GameObject> ();

	homeCanvas.SetActive (false);
	playCanvas.SetActive (true);

	GameObject.Find("Player").GetComponent<PlayerController>().enabled = true;
	GameObject.Find("Player").GetComponent<DestroyContact>().enabled = true;
	GameObject.Find("GameSpawner").GetComponent<Instantiater>().enabled = true;
}

}

`

If you cannot interact with the button, for example click but button not pushed down, make sure there is no invisible panel (with Raycast Target ‘on’) or something else on top of that button.

If you can click the button but nothing happens, make sure you register OnClick() event properly.

Event trigger works with input event, like OnPointerEnter() etc. I am not sure what event you used, and not sure what you’re trying to achieve, but if you want click event just use OnClick() event in Button component.

Yep, like the other answer says, check event system is in the scene as well.

Edit: Formating, Grammar

Check Event System is there in Hierarchy. If it is there, then in Inspector Window, check Force Module Active true.
Check again it works or not.