Exemplo n.º 1
0
 public static MainManager GetInstance()
 {
     if (instance == null)
     {
         instance = new MainManager();
     }
     return(instance);
 }
Exemplo n.º 2
0
        public void SelectUpGroundOrDownGround(int num)
        {
            switch (num)
            {
            case 0:
                Debug.Log("显示地面");
                MainManager.GetInstance().overground.SetActive(true);
                Camera.main.GetComponent <BLCameraControl>().LookAtResAutoDis(MainManager.GetInstance().overground.transform);
                break;

            case 1:
                Debug.Log("显示地下");
                MainManager.GetInstance().overground.SetActive(false);
                Camera.main.GetComponent <BLCameraControl>().LookAtResAutoDis(GameObject.Find("TViewBase").transform);
                break;

            default:
                break;
            }
        }
Exemplo n.º 3
0
 // Start is called before the first frame update
 private void Awake()
 {
     instance = this;
 }