- Home /
Passing values every time to table?
Hi all,
In my simple pendulum project every time i want to pass values to table in play mode.
i wrote code like this:
void DoMyWindow3(int windowID)
{
GUI.Label(new Rect(0,0,400,40), " Length Timeperiod Angle " ,fontstyle);
GUI.Label(new Rect(0,40,400,30), StripeValue+" "+Pendulum2.Timeperiod +" "+Pendulum2.count ,fontstyle);
//// foreach(string s in one) {
//// GUI.Label(new Rect(0,hieght,400,10), s ,fontstyle);
//// hieght += 25;
//// print("Foreach"+hieght);
// }
one.Add(StripeValue.ToString()+Pendulum2.Timeperiod.ToString()+Pendulum2.count.ToString());
two.Add(Pendulum2.Timeperiod.ToString());
three.Add(Pendulum2.count.ToString());
}
But After applying this code i am getting first time value only. But i want to update every end values of simple pendulum. I tried for and foreach statements. In that table i want to update everytime.
For more clarification on this question please see this link: http://answers.unity3d.com/questions/427103/how-will-i-update-my-table-values-every-time.html
In this link i tried all the ways but till i didn't get any correct out put. PI help in this question.
For package : https://www.dropbox.com/s/6ptsqw40lol55b8/Pendulm1.unitypackage
PI check this. and help me.
Thank you Shankar
Comment