| | |
| | | }
|
| | |
|
| | | var _soSkill = _skillInfo.soFile;
|
| | | for (int i = 0; i < _soSkill.animationEventList.Count; ++i)
|
| | | if (_soSkill != null)
|
| | | {
|
| | | if (_soSkill.animationEventList[i].frameEventType == E_FrameEventType.OnPlayEffect)
|
| | | for (int i = 0; i < _soSkill.animationEventList.Count; ++i)
|
| | | {
|
| | | if (_soSkill.animationEventList[i].intParam > 0)
|
| | | if (_soSkill.animationEventList[i].frameEventType == E_FrameEventType.OnPlayEffect)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_soSkill.animationEventList[i].intParam);
|
| | | }
|
| | | }
|
| | | else if (_soSkill.animationEventList[i].frameEventType == E_FrameEventType.OnSkillEvent)
|
| | | {
|
| | | var _param = _soSkill.animationEventList[i].intParam;
|
| | | var _type = SoSkill.GetAttactType(_param);
|
| | | var _id = SoSkill.GetFrameEventId(_param);
|
| | | if (_type == SoSkill.E_AttackType.Sweep)
|
| | | {
|
| | | var _config = ScriptableObjectLoader.LoadSoSweepHit(_id);
|
| | | if (_config.hitEffectId > 0)
|
| | | if (_soSkill.animationEventList[i].intParam > 0)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | InstanceResourcesLoader.LoadEffectAsync(_soSkill.animationEventList[i].intParam);
|
| | | }
|
| | | }
|
| | | else if (_type == SoSkill.E_AttackType.FlyObject)
|
| | | else if (_soSkill.animationEventList[i].frameEventType == E_FrameEventType.OnSkillEvent)
|
| | | {
|
| | | var _config = ScriptableObjectLoader.LoadSoFlyObject(_id);
|
| | | if (_config.hitEffectId > 0)
|
| | | var _param = _soSkill.animationEventList[i].intParam;
|
| | | var _type = SoSkill.GetAttactType(_param);
|
| | | var _id = SoSkill.GetFrameEventId(_param);
|
| | | if (_type == SoSkill.E_AttackType.Sweep)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | var _config = ScriptableObjectLoader.LoadSoSweepHit(_id);
|
| | | if (_config.hitEffectId > 0)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | }
|
| | | }
|
| | | else if (_type == SoSkill.E_AttackType.FlyObject)
|
| | | {
|
| | | var _config = ScriptableObjectLoader.LoadSoFlyObject(_id);
|
| | | if (_config.hitEffectId > 0)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | }
|
| | |
|
| | | if (_config.ammoEffectId > 0)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | if (_config.ammoEffectId > 0)
|
| | | {
|
| | | InstanceResourcesLoader.LoadEffectAsync(_config.hitEffectId);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|