private void Update() { test -= Time.deltaTime; float f = App.Instance.stats.food / App.Instance.stats.maxFood; float s = App.Instance.stats.sleep / App.Instance.stats.maxSleep; float so = App.Instance.stats.social / App.Instance.stats.maxSocial; float r = App.Instance.stats.relax / App.Instance.stats.maxRelax; float mainProcentage = f + s + so + r; food.ChangeProcentage(f); sleep.ChangeProcentage(s); social.ChangeProcentage(so); relax.ChangeProcentage(r); needs.ChangeProcentage(mainProcentage / 4); }