| | |
| | | // mapInitOkEvent();
|
| | | //}
|
| | |
|
| | | GetCreateRoleAward();
|
| | | }
|
| | |
|
| | | void GetCreateRoleAward()
|
| | | {
|
| | | if (DTCA720_tagMCCreateRoleAwardState.m_GetState == 0)
|
| | | {
|
| | | var pack = new CA504_tagCMPlayerGetReward();
|
| | | pack.RewardType = 32;
|
| | | GameNetSystem.Instance.SendInfo(pack);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // A7 20 创角奖励领奖状态 #tagMCCreateRoleAwardState
|
| | |
|
| | | public class DTCA720_tagMCCreateRoleAwardState : DtcBasic {
|
| | | public static int m_GetState;
|
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | {
|
| | | base.Done(vNetPack);
|
| | | HA720_tagMCCreateRoleAwardState vNetData = vNetPack as HA720_tagMCCreateRoleAwardState;
|
| | | m_GetState = vNetData.GetState;
|
| | | }
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6303ee5b4a861ac419e36a73a138bf03 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | Register(typeof(HB122_tagSCHeroInfo), typeof(DTCB122_tagSCHeroInfo)); |
| | | Register(typeof(HA338_tagMCInvestInfo), typeof(DTCA338_tagMCInvestInfo)); |
| | | Register(typeof(HB121_tagMCTreeInfo), typeof(DTCB121_tagMCTreeInfo)); |
| | | Register(typeof(HA720_tagMCCreateRoleAwardState), typeof(DTCA720_tagMCCreateRoleAwardState)); |
| | | } |
| | | |
| | | //主工程注册封包 |
New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A7 20 创角奖励领奖状态 #tagMCCreateRoleAwardState
|
| | |
|
| | | public class HA720_tagMCCreateRoleAwardState : GameNetPackBasic {
|
| | | public byte GetState; // 是否已领取
|
| | |
|
| | | public HA720_tagMCCreateRoleAwardState () {
|
| | | _cmd = (ushort)0xA720;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out GetState, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 08539c9fea3d3ba46a95b13662b704ac |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |