public static void SpawnFire(FireCounter source, int count) { if (Random.Range(0.0f, 1.0f) < 10 / World.singleton.FireCount) { singleton.SpawnFireInternal(source, count); } }
private void SpawnFireInternal(FireCounter source, int count) { Instantiate(FireAudioSource.gameObject, source.transform.position, Quaternion.identity, transform).GetComponent <AudioSource>().PlayOneShot(FireClips[count < Tier1 ? 0: count < Tier2 ? 1 : count < Tier3 ? 2 : 3]); }