Ejemplo n.º 1
0
        // Token: 0x060001AE RID: 430 RVA: 0x00008D30 File Offset: 0x00006F30
        protected static void GetParticleSystemRoots(Transform t, ICollection <ParticleSystem> roots)
        {
            ParticleSystem component = t.GetComponent <ParticleSystem>();

            if (component != null)
            {
                roots.Add(component);
            }
            else
            {
                for (int i = 0; i < t.childCount; i++)
                {
                    ParticleControlPlayableAsset.GetParticleSystemRoots(t.GetChild(i), roots);
                }
            }
        }
Ejemplo n.º 2
0
        // Token: 0x060001AD RID: 429 RVA: 0x00008CEC File Offset: 0x00006EEC
        protected IList <ParticleSystem> GetParticleSystemRoots(GameObject go)
        {
            IList <ParticleSystem> result;

            if (this.searchHierarchy)
            {
                List <ParticleSystem> list = new List <ParticleSystem>();
                ParticleControlPlayableAsset.GetParticleSystemRoots(go.transform, list);
                result = list;
            }
            else
            {
                result = this.GetComponent <ParticleSystem>(go);
            }
            return(result);
        }