Quantcast
Viewing all articles
Browse latest Browse all 2383

Unity Shutdown

//FIX IT!! fixIt = GUILayout.Toggle (fixIt, "Fix an Item", GUILayout.Width (200)); if (fixIt) { GUILayout.Label ("What is the tec level of the item Being Fixed"); fixItTecText = (GUILayout.TextField (fixItTecText, GUILayout.Width (200))); GUILayout.Label ("Enter based on random numbers the item amount and the item Name"); GUILayout.BeginHorizontal (); GUILayout.BeginVertical (); GUILayout.Label ("RND#"); for (int i = 0; i < 10; ++i) { GUILayout.Label ((i + 1).ToString ()); } GUILayout.EndVertical (); GUILayout.BeginVertical (); GUILayout.Label ("Item Names"); for (int i = 0; i < 10; i++) { fixItItemList [i] = (GUILayout.TextField (fixItItemList [i], GUILayout.Width (200))); } GUILayout.EndVertical (); GUILayout.BeginVertical (); GUILayout.Label ("Item Amount"); for (int i = 0; i < 10; ++i) { fixItItemAmountText [i] = (GUILayout.TextField (fixItItemAmountText [i], GUILayout.Width (200))); } GUILayout.EndVertical (); GUILayout.EndHorizontal (); for (int i = 0; i < 10; ++i) { int.TryParse (fixItItemAmountText [i], out fixItItemAmount [i]); } questCard.FixIt = fixIt; int.TryParse (fixItTecText, out fixItTec); questCard.FixItTecLvl = fixItTec; questCard.FixItItemAmount = fixItItemAmount; questCard.FixItItemList = fixItItemList; } The section that is making it crash is questCard.FixItItemList = fixItItemList; questCard.FixItItemList is an array of strings with size 10 and is empty. fixItItemList is an array of strings with size 10 and is holding strings entered into text fields as shown in the code. I take that section out it doesn't crash. I've tried placing it outside the whole inside the whole and in many other places. Nothing works I looked at my getters/setters for FixItItemList and it's all set right. In fact i have another one set identical to this the only difference seems to be that the names are different of the containing sections. Any thoughts or anything I can show more of to figure it out I will gladly provide.

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>