public void ChangeView(Const.View nextView)
    {
        if (_currentView == nextView)
        {
            return;
        }
        _lastView    = _currentView;
        _currentView = nextView;
        _isMoving    = true;
        switch (nextView)
        {
        case Const.View.Purchase:
            _mentorParchaseView.gameObject.SetActive(true);
            _mentorTrainingView.gameObject.SetActive(false);
            break;

        case Const.View.Training:
            _mentorParchaseView.gameObject.SetActive(false);
            _mentorTrainingView.gameObject.SetActive(true);
            break;

        case Const.View.Close:
            _openButton.gameObject.SetActive(true);
            break;
        }
    }
Beispiel #2
0
    public void ChangeView(Const.View nextView)
    {
        if (_currentView == nextView)
        {
            return;
        }
        _lastView    = _currentView;
        _currentView = nextView;
        isMoving     = true;
        switch (nextView)
        {
        case Const.View.Purchase:
            _mainPanel.color = new Color(225f, 225f, 225f, 100f);
            _mentorPurchaseView.gameObject.SetActive(true);
            _mentorTrainingView.gameObject.SetActive(false);
            break;

        case Const.View.Training:
            _mainPanel.color = new Color(225f, 225f, 225f, 100f);
            _mentorPurchaseView.gameObject.SetActive(false);
            _mentorTrainingView.gameObject.SetActive(true);
            break;

        case Const.View.Close:
//				openButton.gameObject.SetActive(true);
            _mainPanel.color = new Color(225f, 225f, 225f, 0f);
            _mentorPurchaseView.gameObject.SetActive(false);
            _mentorTrainingView.gameObject.SetActive(false);
            break;
        }
    }