Beispiel #1
0
    private void OnInitEndingProcess()
    {
        if (_endingView == null)
        {
            _endingView = ResourceManager.Instance.InstantiateView <EndingView>(_mainCanvas);
        }
        long     endingId = default(long);
        UserData userData = null;

        if (_param != null)
        {
            if (_param.ContainsKey("endingId"))
            {
                endingId = (long)_param["endingId"];
            }
            if (_param.ContainsKey("userData"))
            {
                userData = (UserData)_param["userData"];
            }
        }

        HideAllView();
        _endingView.gameObject.SetActive(true);
        _endingView.InitView(endingId, ChangeState, null, userData);
        ChangeState(GameState.UpdateEnding);
    }
 private void OnPanelTapped(long endingId)
 {
     if (_endingView == null)
     {
         _endingView = ResourceManager.Instance.InstantiateView <EndingView>(_endingContents);
     }
     _endingView.gameObject.SetActive(true);
     _endingView.InitView(endingId, _onChangeState, OnEndingViewTapped);
 }