Example #1
0
        public void DeleteParticle(CustomParticle particle)
        {
            List <CustomParticle> temp = particles.ToList();

            temp.Remove(particle);
            particles = temp;
        }
Example #2
0
        public void AddCustomParticle(Transform scrayEventObjTransform, GameObject scrayEventPrefab,
                                      float scrayEventDelay)
        {
            CustomParticle particle = new CustomParticle();

            particle.objTransform = scrayEventObjTransform;
            particle.prefab       = scrayEventPrefab;
            particle.delay        = scrayEventDelay;
            particles.Add(particle);
        }