Implement config category switch.

This commit is contained in:
2022-11-15 12:09:29 +08:00
parent 1d1d2646c4
commit f44d9546e1
2 changed files with 10 additions and 0 deletions

Binary file not shown.

View File

@@ -3,6 +3,16 @@ using UnityEngine.SceneManagement;
namespace Cryville.Crtr.Config {
public class ConfigScene : MonoBehaviour {
[SerializeField]
Transform m_content;
public void SwitchCategory(GameObject cat) {
foreach (Transform c in m_content) {
c.gameObject.SetActive(false);
}
cat.SetActive(true);
}
public void ReturnToMenu() {
GameObject.Find("Master").GetComponent<Master>().ShowMenu();
#if UNITY_5_5_OR_NEWER