setCurrentParticles()

private void setCurrentParticles()
    {
        foreach (GameObject particle in particleSystems)
        {
            if (particle.name == inventory.usingThis.GetParticlesSystems()[0])
            {
                currentParticleSystem = particle.GetComponent();
                break;
            }
        }
    }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *