// Use this for initialization void Start() { _instance = this; m_OpenFrist = true; m_CloseFrist = true; DontDestroyOnLoad(this); }
public void Start() { //DontDestroyOnLoad(gameObject); instance = this; PlayerInformation.Instance.asyUI = gameObject; gameObject.SetActive(false); }
private void back_to_port() { _StartUp = false; SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate { pop_record(); AsyncLoadScene.LoadLevelAsyncScene(this, Generics.Scene.PortTop.ToString(), null); }); }
public void compFadeAnimation() { SingletonMonoBehaviour <PortObjectManager> .Instance.SetActive(isActive : true); AsyncLoadScene.LoadLevelAsyncScene(this, Generics.Scene.PortTop, null); }
public Image backImage; //背景图 void Awake() { Instance = this; }