I was wondering how (if you can) pass parameters to a Instantiated prefab.
I have an explosion prefab that I want to pass size at creation time.
Is there a way to do this other then
explosion = Instantiate(gameObject, transfom, Quaternion.identity); explosion.setSize(10); explosion.explode();
I was looking for something more like
explosion = Instantiate(gameObject, transfom, Quaternion.identity, explosionSize);