private IEnumerator <IPhotonNode> GetParticles(IPlasma <IPhotonNode> plasma) { IPhotonPlasma photonPlasma = plasma as IPhotonPlasma; if (photonPlasma != null) { return(photonPlasma.VisibleParticles); } return(plasma.GetEnumerator()); }
protected virtual IEnumerator <T> GetParticles(IPlasma <T> plasma) { return(plasma.GetEnumerator()); }