void InstantiateCollectable(Vector3 position, int collectableType) { if (collectableType == 0) { return; } //Instantiate(collectablesPrefabs[collectableType - 1], position, Quaternion.Euler(collectableRotation)); pooling.InstantiateCollectable(position, Quaternion.Euler(collectableRotation), collectableType - 1); }