CultivationOfBrewing-2/Assets/Scripts/LiveSceneManger.cs

43 lines
930 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class LiveSceneManger : MonoBehaviour
{
public static LiveSceneManger Instance;
//任务头顶按钮
public Button TipBtn;
//正常植株相机
public Camera CameraZC;
//病株相机
public Camera CameraBZ;
public CameraOrbit A;
public CameraOrbitS B;
public UI_GraphicRextualPanel rextualPanel;
// Start is called before the first frame update
private void Awake()
{
Instance = this;
A.enabled = false;
B.enabled = false;
}
void Start()
{
TipBtn.onClick.AddListener(() =>
{
TipBtn.gameObject.SetActive(false);
Bootstrap.Instance.uiManager.ShowPanel<UI_GraphicRextualPanel>(this, E_UI_Layer.Top, (panel) =>
{
Debug.Log("UI_MenuBar");
});
});
}
}