- Home /
Question by
scorpionassassin · Apr 11 at 01:14 PM ·
array
sum of array every frame
how can i sum of array on every frame?If the value of one of the arrays is reduced,and again sum of array;
void spawn{
numberofobject[i]--;
}
{
for (int i = 0; i <.numberofobject[i]; i++)
{
Sumofobject +=numberofobject[i];
}
}
Comment
Your answer

Follow this Question
Related Questions
calling a function when any variable in an array changes 1 Answer
Referencing arrays with a variable 1 Answer
Access array from one object to another. 1 Answer
Efficient wind on clouds 2 Answers
Destroy(Gameobject) not working 1 Answer