Skip to content

Instantly share code, notes, and snippets.

@AmmarTee
Created December 17, 2022 14:32
Show Gist options
  • Save AmmarTee/45e8a014d128efa6c2553d39e0b854e2 to your computer and use it in GitHub Desktop.
Save AmmarTee/45e8a014d128efa6c2553d39e0b854e2 to your computer and use it in GitHub Desktop.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class MenuController : MonoBehaviour
{
public GameObject MainButtonPanel,LevelButtonPanel;
public void OpenLevelButton()
{
LevelButtonPanel.SetActive(true);
MainButtonPanel.SetActive(false);
}
public void OpenMainButton()
{
MainButtonPanel.SetActive(true);
LevelButtonPanel.SetActive(false);
}
//public void PlayGame()
//{
// SceneManager.LoadScene();
//}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment