private void SetValuesFromMood(FaerieMood mood) { faerieSpeed = mood.speed; ColorParticle(faerieParticles, mood.mainFaerieColor, mood.accentColor); ColorParticle(circleParticles, mood.mainCircleColor, mood.accentColor); faerieGlow.color = mood.glowColor; faerieGlow.intensity = mood.glowIntensity; windZone.windMain = mood.windForce; }
private void SetValuesFromMood(FaerieMood mood) { faerieSpeed = mood.speed; ColorParticle(faerieParticles, mood.mainFaerieColor, mood.accentColor); ColorParticle(circleParticles, mood.mainCircleColor, mood.accentColor); faerieGlow.color = mood.glowColor; faerieGlow.intensity = mood.glowIntensity; windZone.windMain = mood.windForce; NavMesh.SetAreaCost(NavMesh.GetAreaFromName("FaerieCircle"), mood.areaCost); }