Example #1
0
    private void OnDispatchRewardReq()
    {
        _stDispatchRewardReq stDispatchRewardReq = new _stDispatchRewardReq();

        stDispatchRewardReq.kTeamIndex = m_DispatchRecvData.kTeamIndex;

        CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchReward, stDispatchRewardReq, typeof(_stDispatchRewardAck));
    }
Example #2
0
    /// <summary>
    /// 보상 수령 패킷 보냄.
    /// </summary>
    /// <param name="go"></param>
    private void OnReward(GameObject go)
    {
        if (go != null)
        {
            SoundManager.Instance.PlayFX(enSoundFXUI.BUTTON_MEDIUM);
        }

        if (m_DispatchRecvData.kDispatchState == _enDispatchState.eDispatchState_INPROGRESSING)
        {
            CNetManager.Instance.DispatchStub.OnDispatchRewardReq = OnDispatchRewardReq;

            _stDispatchCheckEndReq stDispatchCheckEndReq = new _stDispatchCheckEndReq();
            stDispatchCheckEndReq.kDispatchTeamIndex = m_DispatchRecvData.kTeamIndex;

            CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchCheck, stDispatchCheckEndReq, typeof(_stDispatchCheckEndAck));
        }
        else if (m_DispatchRecvData.kDispatchState == _enDispatchState.eDispatchState_COMPLETE || m_DispatchRecvData.kDispatchState == _enDispatchState.eDispatchState_BIGCOMPLETE)
        {
            _stDispatchRewardReq stDispatchRewardReq = new _stDispatchRewardReq();
            stDispatchRewardReq.kTeamIndex = m_DispatchRecvData.kTeamIndex;

            CNetManager.Instance.SendPacket(CNetManager.Instance.DispatchProxy.DispatchReward, stDispatchRewardReq, typeof(_stDispatchRewardAck));
        }
    }