private static void CheckParticleSystemRandomColor(AssetCheckArgs args) { ParticleSystemRandomColor particleSystemRandomColor = (ParticleSystemRandomColor)args.asset; for (int i = 0; i < particleSystemRandomColor.particleSystems.Length; i++) { if (!particleSystemRandomColor.particleSystems[i]) { args.LogErrorFormat(args.asset, "Null particle system in slot {0}", new object[] { i }); } } }
private static void CheckParticleSystemRandomColor(ProjectIssueChecker projectIssueChecker, UnityEngine.Object asset) { ParticleSystemRandomColor particleSystemRandomColor = (ParticleSystemRandomColor)asset; for (int i = 0; i < particleSystemRandomColor.particleSystems.Length; i++) { if (!particleSystemRandomColor.particleSystems[i]) { projectIssueChecker.LogErrorFormat(asset, "Null particle system in slot {0}", new object[] { i }); } } }