protected void ChangeFireTexture(ref Material texture) { float textureSelector = Rand.Value; if (textureSelector < 0.33f) { texture = fireTextureA; } else if (textureSelector < 0.66f) { texture = fireTextureB; } else { texture = fireTextureC; } }