private AssetInfo GetAssetInfo(IEventArgs args, FreeEffectCreateAction effect) { if (effect != null) { if (effect.GetEffects().Count >= 1) { IFreeEffect ef = effect.GetEffects()[0]; if (ef is FreeParticleEffect) { FreeParticleEffect particle = (FreeParticleEffect)ef; string url = particle.GetStyle(args, null); int last = url.LastIndexOf("/"); return(new AssetInfo(url.Substring(0, last), url.Substring(last + 1))); } } } return(default(AssetInfo)); }