2021-03-25 16:53:39 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class MainController : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
|
void Start()
|
|
|
|
|
|
{
|
|
|
|
|
|
UIManager.Instance.MainPanel = (GameObject)this.transform.Find("Panel").gameObject;
|
2021-04-01 09:33:19 +08:00
|
|
|
|
UIManager.Instance.ModalsPanel = this.transform.Find("ModalPanel").gameObject;
|
2021-03-30 14:23:41 +08:00
|
|
|
|
|
2021-03-25 16:53:39 +08:00
|
|
|
|
|
|
|
|
|
|
//MainMenu.transform.Find("Home").GetComponent<Button>().onClick.AddListener(() =>
|
|
|
|
|
|
//{
|
|
|
|
|
|
// UIManager.ShowHomePanel();
|
|
|
|
|
|
//});
|
|
|
|
|
|
|
2021-03-29 09:10:59 +08:00
|
|
|
|
UIManager.ShowHomePanel();
|
|
|
|
|
|
//UIManager.ShowUserInfoPanel();
|
2021-03-30 14:23:41 +08:00
|
|
|
|
//UIManager.ShowEditUserPanel();
|
2021-03-25 16:53:39 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
|
|
|
|
void Update()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|