I'm just a beginner and I am currently having problems with the OnClick editor. I already drag and dropped my script to an empty gameobject and dragged that game object to the OnClick editor but still my function of "Pause" won't show up even if I already have it set to public. Please help
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class uiManager : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void Pause() {
if (Time.timeScale == 1) {
Time.timeScale == 0;
}
else if (Time.timeScale == 0) {
Time.timeScale == 1;
}
}
}
