private void Start() { cooldownMeteor = Random.Range(timeToSpawnMeteor.x, timeToSpawnMeteor.y); cooldownBlackHole = Random.Range(timeToSpawnBlackHole.x, timeToSpawnBlackHole.y); PoolManager.MakePool(meteor, 5, 3, true); }
public void PlayWoodCrash(Vector3 pos) { PoolManager.Spawn(sounds[(int)soundIndx.woodCrash], pos, Quaternion.identity); }
public void PlayWoodHit(Vector3 pos) { int selector = Random.Range(0, 2); PoolManager.Spawn(sounds[(int)soundIndx.woodHit1 + selector], pos, Quaternion.identity); }
public void PlayEmptyShoot(Vector3 pos) { PoolManager.Spawn(sounds[(int)soundIndx.emptyShoot], pos, Quaternion.identity); }
public void PlayMetalStrike(Vector3 pos) { PoolManager.Spawn(sounds[(int)soundIndx.metalStrike], pos, Quaternion.identity); }
public void PlayGranadaLauncher(Vector3 pos) { PoolManager.Spawn(sounds[(int)soundIndx.granadeLauncher], pos, Quaternion.identity); }
public void PlayExplosion(Vector3 pos) { PoolManager.Spawn(sounds[(int)soundIndx.explosion], pos, Quaternion.identity); }
public void PlayIndexedSound(int i, Vector3 pos) { PoolManager.Spawn(sounds[i], pos, Quaternion.identity); }