Hello!. In my 3d Game i have a panel which is the one you see when the game loads. I have this as the panel you use to play the game. But one question how do i make an if statement where if the game panel PanelStart is active then the TimeScale= 0 ?
here is my script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Play : MonoBehaviour
{
public GameObject PanelStart;
void Paused ()
{
}
public void Start()
{
PanelStart.SetActive(false);
Time.timeScale = 1;
}
}