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


    #region UnityCallbacks

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