17 if (interactables ==
null)
return;
19 var stringsOfPercent =
function.value.Split(
new char[] {
'#' });
20 bool isOneForAll = stringsOfPercent.Length < interactables.Count;
22 if (stringsOfPercent.Length < interactables.Count)
24 Debug.Log(
"You don't have enough parameters, the first one will be used for all!");
27 for (
int i = 0; i < interactables.Count; i++)
29 int percents = isOneForAll ?
int.Parse(stringsOfPercent[0]) :
int.Parse(stringsOfPercent[i]);
30 interactables[i].GenerateBreakdown(percents);