4714 【1.3】【前端】新的洗练副本-冰晶矿脉(新),原冰晶矿脉副本删除
| | |
| | | Register(typeof(HAA19_tagMCActWishingWellInfo), typeof(DTCAA19_tagMCActWishingWellInfo));
|
| | | Register(typeof(HAA1A_tagMCActWishingWellPlayerInfo), typeof(DTCAA1A_tagMCActWishingWellPlayerInfo));
|
| | | Register(typeof(HAA1B_tagMCActWishingDragResult), typeof(DTCAA1B_tagMCActWishingDragResult));
|
| | | Register(typeof(HB204_tagMCIceLodeInfo), typeof(DTCB204_tagMCIceLodeInfo));
|
| | | }
|
| | |
|
| | | private static void Register(Type _pack, Type _business)
|
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | |
|
| | | // B2 04 冰晶矿脉信息通知 #tagMCIceLodeInfo
|
| | |
|
| | |
|
| | |
|
| | | public class DTCB204_tagMCIceLodeInfo : DtcBasic {
|
| | | IceCrystalVeinModel m_IceCrystalVeinModel;
|
| | | IceCrystalVeinModel iceCrystalVeinModel { get { return m_IceCrystalVeinModel ?? (m_IceCrystalVeinModel = ModelCenter.Instance.GetModel<IceCrystalVeinModel>()); } }
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | base.Done(vNetPack);
|
| | | HB204_tagMCIceLodeInfo vNetData = vNetPack as HB204_tagMCIceLodeInfo;
if (vNetData == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | iceCrystalVeinModel.IceLodeInfo(vNetData);
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 0b79e9e1cde343745ab003b2f5b30af4 |
| | | timeCreated: 1542336363 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // B2 04 冰晶矿脉信息通知 #tagMCIceLodeInfo
|
| | |
|
| | | public class HB204_tagMCIceLodeInfo : GameNetPackBasic {
|
| | | public byte Cnt; // 今日玩法数量
|
| | | public byte[] LineList; // 玩法列表
|
| | | public uint AwardRecord; // 领奖记录
|
| | | public byte HasSweep; // 是否已扫荡
|
| | | public ushort DayLV; // 今日等级
|
| | |
|
| | | public HB204_tagMCIceLodeInfo () {
|
| | | _cmd = (ushort)0xB204;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out Cnt, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out LineList, vBytes, NetDataType.BYTE, Cnt);
|
| | | TransBytes (out AwardRecord, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out HasSweep, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out DayLV, vBytes, NetDataType.WORD);
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 7f43cb4092c60ca41b75bee640e2e10d |
| | | timeCreated: 1542336363 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | public class IceCrystalVeinModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public Dictionary<int, IceLodeStarAwardClass> DicIceLodeStarAward = new Dictionary<int, IceLodeStarAwardClass>();
|
| | |
|
| | | public List<int> LineList = new List<int>();//玩法列表
|
| | | public int AwardRecord = 0;//领奖记录
|
| | | public int HasSweep = 0;//是否已扫荡
|
| | | public int DayLv = 0;//今日等级
|
| | | public event Action UpdateIceLodeInf;
|
| | | public override void Init()
|
| | | {
|
| | | Assignment();
|
| | |
| | |
|
| | |
|
| | | }
|
| | |
|
| | | public void IceLodeInfo(HB204_tagMCIceLodeInfo info)
|
| | | {
|
| | | if (info.Cnt > 0)
|
| | | {
|
| | | LineList.Clear();
|
| | | for (int i = 0; i < info.Cnt; i++)
|
| | | {
|
| | | LineList.Add(info.LineList[i]);
|
| | | }
|
| | | }
|
| | | AwardRecord = (int)info.AwardRecord;
|
| | | HasSweep = (int)info.HasSweep;
|
| | | DayLv = (int)info.DayLV;
|
| | | if (UpdateIceLodeInf != null)
|
| | | {
|
| | | UpdateIceLodeInf();
|
| | | }
|
| | | }
|
| | |
|
| | | public void SendGetAward(int Index)
|
| | | {
|
| | | CA504_tagCMPlayerGetReward getReward = new CA504_tagCMPlayerGetReward();
|
| | | getReward.RewardType = (byte)GotServerRewardType.Def_RewardType_IceLodeStar;
|
| | | getReward.DataEx = (uint)Index;
|
| | | getReward.DataExStrLen = 0;
|
| | | getReward.DataExStr = string.Empty;
|
| | | GameNetSystem.Instance.SendInfo(getReward);
|
| | | }
|
| | | } |
| | | |
| | | |
| | |
| | | foreach (var key in iceCrystalVeinModel.DicIceLodeStarAward.Keys)
|
| | | {
|
| | | var Dic = iceCrystalVeinModel.DicIceLodeStarAward[key];
|
| | | int Lv = PlayerDatas.Instance.baseData.LV;
|
| | | int Lv = iceCrystalVeinModel.DayLv;
|
| | | if (Lv >= Dic.MinLv && Lv <= Dic.MaxLv)
|
| | | {
|
| | | IceLodeStarAwardList.Add(Dic);
|
| | |
| | | public float MinSpeed = 400;
|
| | | [Header("最大速度")]
|
| | | public float MaxSpeed = 800;
|
| | | [Header("最大速度")]
|
| | | public float _Speed = 1f;
|
| | | WheelOfFortuneModel wheelOfFortuneModel { get { return ModelCenter.Instance.GetModel<WheelOfFortuneModel>(); } }
|
| | | [SerializeField] CheckDisplay m_CheckDisplay;
|
| | |
|
| | |
| | | //这里有个360,使用来防止指针回转的,如果不加这个360,你会看到指针倒退
|
| | | sequence = DOTween.Sequence();
|
| | | sequence.SetAutoKill(false);
|
| | | sequence.Append(transform.DORotate(new Vector3(0, 0, -(360 + Angle)), 2f, RotateMode.FastBeyond360));
|
| | | sequence.Append(transform.DORotate(new Vector3(0, 0, -(360 + Angle)), _Speed, RotateMode.FastBeyond360));
|
| | | sequence.AppendCallback(() =>
|
| | | {
|
| | | _isRotate = false; // 设置不旋转
|
| | |
| | | Def_RewardType_WishingWell = 16,// 许愿池奖励16
|
| | | Def_RewardType_OpenFunc = 17,//功能预告奖励
|
| | | Def_RewardType_TotalRecharge = 18,//累计充值奖励
|
| | | Def_RewardType_IceLodeStar, //冰晶矿脉星级奖励19
|
| | |
|
| | | }
|
| | |
|
| | | public enum MapType
|