public override void Trigger(GameObject actor) { if (EffectObj == null && effect != null) { EffectObj = GameObject.Instantiate <GameObject>(effect); EffectObj.transform.SetParent(transform); } if (EffectObj != null) { if (path != null) { path.StartPath(EffectObj.transform); } if (ParticleRoot == null) { ParticleRoot = EffectObj.transform; } if (ParticleSys != null) { for (int i = 0; i < ParticleSys.Length; i++) { ParticleSys[i].Play(); ParticleSys[i].Simulate(0); } } } }
protected override void OnStart(SkillCaller caller, Skill skill, int time) { path.StartPath(transform); }