void FixedUpdate() { float h = main.health; float mh = main.max_health; timer_smoke++; if (h / mh < .25f) { PSB.startColor = new Vector4(0, 0, 0, 255); } else { PSB.startColor = new Vector4(255, 255, 255, 255); } if (timer_smoke > h / mh * 350 && mh - h > 10) { PSB.Emit((int)(1)); timer_smoke = 0; } }