void Start() { cont = 0f; current = this; for (int i = 0; i < pooledAmount; i++) { GameObject obj = Instantiate(objectPooled); obj.SetActive(false); pooledObjects.Add(obj); } }
private void Awake() { current = this; }