// 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()); }