I want to create a few values which will be dependent on each other. Specifically, I want total sum of few values always be 100 In unity inspector no matter how I tweak them.
E.G.:
int total = 100;
int one = 20;
int two = 30;
int three = 45;
int four = 5;
How can I make other values adjust automatically if I tweak one of them in Unity Inspector?