// Update is called once per frame void Update() { bs.heatlh += healthUp ? change1 : -change1; if (bs.heatlh >= 10.0f || bs.heatlh <= 0.0f) { healthUp = !healthUp; } bs.size += sizeUp ? change2 : -change2; if (bs.size >= 10.0f || bs.size <= 0.0f) { sizeUp = !sizeUp; } bs.wealth += wealthUp ? change3 : -change3; if (bs.wealth >= 10.0f || bs.wealth <= 0.0f) { wealthUp = !wealthUp; } bs.ApplyStatsVisuals (); bs.removeHat (); bs.hatSelect (); }