| | |
| | |
|
| | | int _effectID = 1040;
|
| | |
|
| | | if(CrossServerUtility.IsCrossServerOneVsOne())
|
| | | if (CrossServerUtility.IsCrossServerOneVsOne())
|
| | | {
|
| | | _effectID = 5206;
|
| | | }
|
| | |
|
| | | if (package.BarrierList[i].Angle == 0)
|
| | | if (PlayerDatas.Instance.baseData.MapID == 31190)
|
| | | {
|
| | | // 创建特效
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, _isHorizontal ? new Vector3(0, 0, 0) : new Vector3(0, 90, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | | _effectID = 0;
|
| | | }
|
| | | else
|
| | | { |
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, new Vector3(0, package.BarrierList[i].Angle, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | |
|
| | | if (_effectID > 0)
|
| | | {
|
| | | if (package.BarrierList[i].Angle == 0)
|
| | | {
|
| | | // 创建特效
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, _isHorizontal ? new Vector3(0, 0, 0) : new Vector3(0, 90, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | | }
|
| | | else
|
| | | {
|
| | | SFXController _sfx = SFXPlayUtility.Instance.PlayWithEulerAngle(_effectID, _pos, new Vector3(0, package.BarrierList[i].Angle, 0));
|
| | | _sfx.duration = 0;
|
| | | _sfx.transform.localScale = new Vector3(_scale, 1, 1);
|
| | | sfxDict.Add(id, _sfx);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|