Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     _instance    = this;
     m_OpenFrist  = true;
     m_CloseFrist = true;
     DontDestroyOnLoad(this);
 }
Ejemplo n.º 2
0
 public void Start()
 {
     //DontDestroyOnLoad(gameObject);
     instance = this;
     PlayerInformation.Instance.asyUI = gameObject;
     gameObject.SetActive(false);
 }
Ejemplo n.º 3
0
 private void back_to_port()
 {
     _StartUp = false;
     SingletonMonoBehaviour <FadeCamera> .Instance.FadeOut(0.2f, delegate
     {
         pop_record();
         AsyncLoadScene.LoadLevelAsyncScene(this, Generics.Scene.PortTop.ToString(), null);
     });
 }
Ejemplo n.º 4
0
        public void compFadeAnimation()
        {
            SingletonMonoBehaviour <PortObjectManager> .Instance.SetActive(isActive : true);

            AsyncLoadScene.LoadLevelAsyncScene(this, Generics.Scene.PortTop, null);
        }
Ejemplo n.º 5
0
    public Image backImage;          //背景图

    void Awake()
    {
        Instance = this;
    }