private GameObject tempGameObject;//temporary game object to store instantiated gameobject
    #endregion


    #region UnityCallbacks

    void Awake()
    {
        if (instance != null)
        {
            return;
        }
        instance = this; //initialize singleton
    }
Exemple #2
0
 void Start()
 {
     objectPool = GetComponent <ObjectPoolerSimple>();
     Spawn();
 }