This is my the code I’m using to switch from UI scene to Play scene (it’s a simple PONG game and I’m not good at coding).
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Play : MonoBehaviour
{
void OnMOuseDown ()
{
transform.localScale *= 0.9F;
}
void OnMouseUp ()
{
Application.LoadLevel(1);
}
}