public Config() { szBossDropSkill = new int[] { WGDefine.SK_YunShi, WGDefine.SK_ChangShe50, WGDefine.SK_FangYu4, WGDefine.SK_JianSu, WGDefine.SK_HaiXiao }; szReleaseSkill = new int[] { WGDefine.SK_ChangShe100, WGDefine.SK_FangYu4, WGDefine.SK_DiZhen, WGDefine.SK_JianSu, WGDefine.SK_GuDing30 }; EnergyFull = 100; sp = new MDSceneParamter(); szCoinScale = new List <MDCoinScale>(); ct = new MDTran(); wt = new float[] { 0, 0, 0.82f }; }
public void InitWithGameWorld(WGGameWorld World) { _sp = Core.fc.sp; szBigBear = new List <int>() { WGDefine.BossID, WGDefine.PayBear1, WGDefine.PayBear2 }; _EnergyFull = Core.fc.EnergyFull; Speed = _sp.SPEED_commen; if (_dataPlayer.DelAD == 0) { #if Add_AD wuqiTran.localPosition = Core.fc.weaponsPos1; #else wuqiTran.localPosition = Core.fc.weaponsPos; #endif } else { wuqiTran.localPosition = Core.fc.weaponsPos; } TongueRoot.ESetActive(true); mTurnPlate.v3Rotate = Core.fc.turnPlateComm; csRoteTp.V = Core.fc.turnPlateComm.z / 40.0f;//result is 0.3 tDeskPanel.localPosition = Core.fc.deskPos; coinDropBox.transform.localPosition = Core.fc.boxCoin.pos; coinDropBox.size = Core.fc.boxCoin.size; coinDropBox.center = Core.fc.boxCoin.center; collectionDropBox.transform.localPosition = Core.fc.boxColletion.pos; collectionDropBox.size = Core.fc.boxColletion.size; collectionDropBox.center = Core.fc.boxColletion.center; pgHaiXiao.value = _dataPlayer.mEnergy * 1.0f / _EnergyFull; _ShareWorld = World; dataCtrl = WGDataController.Instance; _ShareObjManager = World.cs_ObjManager; _TongueSide = _sp.Backward; _TurnPlateTrans = BearRoot.transform; _DeadBearList = new Queue <Transform>(); TreeTween.gameObject.SetActive(false); goIceDesk.SetActive(false); ResetAllBear(); }
public FinalConfig(Config cfg) { this.szBossDropSkill = cfg.szBossDropSkill; this.szReleaseSkill = cfg.szReleaseSkill; this.EnergyFull = cfg.EnergyFull; this.sp = cfg.sp; this.dicCoinScale = new Dictionary <int, Vector3>(); for (int i = 0, max = cfg.szCoinScale.Count; i < max; i++) { this.dicCoinScale.Add(cfg.szCoinScale[i].id, SDK.toV3(cfg.szCoinScale[i].s)); } this.coinCamPos = SDK.toV3(cfg.ct.p); this.coinCamRot = SDK.toV3(cfg.ct.r); this.weaponsPos = SDK.toV3(cfg.wt); this.weaponsPos1 = SDK.toV3(cfg.wt1); this.turnPlateComm = new Vector3(0, 0, cfg.tv[0]); this.turnPlateSlow = new Vector3(0, 0, cfg.tv[1]); this.deskPos = SDK.toV3(cfg.dt); this.boxCoin = new MDBoxVec(cfg.box1); this.boxColletion = new MDBoxVec(cfg.box2); szRoles = cfg.role; }