I have a Singleton Class called "BLSingleton", which has a public GameObject prefabPop, I drag a prefab to it, and a function:
public void showPopview() {
GameObject popView = (GameObject) Instantiate(prefabPop);
}
but in other class when I call BLSingleton.GetInstance().showPopview(), there is an error:
ArgumentException: The thing you want to instantiate is null.
Anybody knows why? Thanks very much.