I have a script made by a GameObject like this:
public BallStorage ballStorage;
ballStorage = new BallStorage ();
and in the script BallStorage i need to instantiate a prefab like this:
GameObject Prefab = Instantiate (prefab, new Vector3 (x, y, z), transform.rotation) as GameObject;
but i can’t do this because a didn’t have a prefab attached to the script, because the script isn’t attached to any gameobject…
please, someone helpme!!!