protected override void DoMoonAction(float fireMoonintensity, float coldMoonIntensity) { float newTaille = 0; float moonsInfluence = fireMoonintensity - coldMoonIntensity; if (moonsInfluence < 0) { moonsInfluence = 0; } newTaille = ((tailleMaximum - tailleMinimum) * moonsInfluence) + tailleMinimum; tailleModifier.modifySize(newTaille); }
private void modifySize(float _newSize) { tailleModifier.modifySize(_newSize); detector.detectionRadius *= _newSize / transform.localScale.x; }