private GameObject tempGameObject;//temporary game object to store instantiated gameobject #endregion #region UnityCallbacks void Awake() { if (instance != null) { return; } instance = this; //initialize singleton }
void Start() { objectPool = GetComponent <ObjectPoolerSimple>(); Spawn(); }