예제 #1
0
    // Use this for initialization
    void Start()
    {
        base.Start();

        QrView = GetComponentInChildren <QrcodeView> (true);
        if (null == FullCamera)
        {
            FullCamera         = GameObject.Find("FullScreenCamera").GetComponent <Camera> ();
            FullCamera.enabled = false;
        }
        if (null == MainCamera)
        {
            MainCamera = GameObject.Find("Main Camera").GetComponent <Camera> ();
        }

        selfCanvas = GetComponent <Canvas> ();
        DisplayNone();
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        if (null == instance)
        {
            instance = this;
        }

        LoginMgr.Init();
        CtrlMl.Init();
        LoginVw  = GetComponentInChildren <LoginView> (true);
        ContrlVw = GetComponentInChildren <ControlView> (true);
        MainVw   = GetComponentInChildren <MainView> (true);
        QrView   = transform.parent.GetComponentInChildren <QrcodeView> (true);

        //Register window...
        WindowsManager.Instance.addWin(typeof(LoginView), LoginVw);
        WindowsManager.Instance.addWin(typeof(ControlView), ContrlVw);
        WindowsManager.Instance.addWin(typeof(MainView), MainVw);
        WindowsManager.Instance.addWin(typeof(QrcodeView), QrView);

        //for test., to delete..
        //StartCoroutine(test());
    }