コード例 #1
0
    public void LoginOutView( )
    {
        Image uiImage = bindBtn.GetComponentInChildren <Image> ();

        uiImage.sprite = SCMainWinController.Instance().SCMainVw.buttonUnselected;
        bingText.text  = "";
        _model.Init();
    }
コード例 #2
0
    //public CombBulletScreenDisplayer DangmuVw;
    //public DangmuTextController DangmuControl;

    // Use this for initialization
    void Start()
    {
        if (null == instance)
        {
            instance = this;
        }

        ScModel.Init();

        //init view...
        if (null == SCMainVw)
        {
            SCMainVw = GameObject.Find("MainWindow").GetComponent <SCMainView> ();
        }

        if (null == FileMatVw)
        {
            FileMatVw = GameObject.Find("MaterialWindow").GetComponent <FileMaterialDiaLog> ();
        }

        if (null == TopLeftVw)
        {
            TopLeftVw = GameObject.Find("Canvas-TopLeft").GetComponent <TopLeftView> ();
        }

        if (null == TopRhtVw)
        {
            TopRhtVw = GameObject.Find("Canvas-TopRight").GetComponent <TopRightView> ();
        }

        if (null == LoginVw)
        {
            LoginVw = GameObject.Find("LoginWindow").GetComponent <SCLoginView> ();
        }

        //if (null == MainVw)
        //MainVw = GameObject.Find ("MainWindow").GetComponent<MainView> ();

        //
        SCWindowsManager.Instance.addWin(typeof(SCMainView), SCMainVw);
        SCWindowsManager.Instance.addWin(typeof(FileMaterialDiaLog), FileMatVw);
        SCWindowsManager.Instance.addWin(typeof(SCLoginView), LoginVw);
        SCWindowsManager.Instance.addWin(typeof(WebBulletScreenView), DangmuVw);
        SCWindowsManager.Instance.addWin(typeof(MainView), MainVw);

        //SCWindowsManager.Instance.addWin (typeof(FullWindowView), FullWinVw);

        //DangmuControl = new DangmuTextController ();
        //DangmuControl.Init ();
    }