//每帧检测 void SetEffect(Frame f) { CheckEffect(); if (iextplayer == null) { return; } foreach (var e in f.effectList) { Transform o = transform.Find(e.follow); if (e.lifeframe > 0) { if (o != null) { die d = new die(); d.lifetime = e.lifeframe; d.effid = iextplayer.PlayEffectLooped(e.name, o, e.position, e.isFollow, dir); livetimelist.Add(d); } } else { iextplayer.PlayEffect(e.name, o, e.position, e.isFollow, dir); } } }