示例#1
0
 // Token: 0x060001A6 RID: 422 RVA: 0x0000894C File Offset: 0x00006B4C
 protected void SearchHiearchyAndConnectParticleSystem(IEnumerable <ParticleSystem> particleSystems, PlayableGraph graph, List <Playable> outplayables)
 {
     foreach (ParticleSystem particleSystem in particleSystems)
     {
         if (particleSystem != null)
         {
             outplayables.Add(ParticleControlPlayable.Create(graph, particleSystem, this.particleRandomSeed));
         }
     }
 }
示例#2
0
        private bool SearchHiearchyAndConnectParticleSystem(GameObject root, PlayableGraph graph, List <Playable> outplayables)
        {
            if (root == null)
            {
                return(false);
            }
            bool flag = false;

            foreach (ParticleSystem particleSystem in this.GetParticleSystems(root))
            {
                if (particleSystem != null)
                {
                    flag = true;
                    outplayables.Add((Playable)ParticleControlPlayable.Create(graph, particleSystem, this.particleRandomSeed));
                }
            }
            return(flag);
        }