Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

ArgumentOutOfRangeException

$
0
0
I have the next error: ArgumentOutOfRangeException: Argument is out of range. Parameter name: index System.Collections.Generic.List`1[Room].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633) RoomGenerator.AutomatingGeneration () (at Assets/_Scripts/RoomGenerator.cs:151) RoomGenerator.Start () (at Assets/_Scripts/RoomGenerator.cs:46) I checked line 151 and everything seems to work normal. Can someone help me with this error? 149- int lastRoomCreatedIn_Index = rooms.FindIndex (obj => (int)callForRoomWithDoorIn == (int)obj.lastCreatedRoomAt); 150- Debug.Log ("lastRoomCreatedIn_Index: " + lastRoomInListIndex + " callForRoomWithDoorIn: " + callForRoomWithDoorIn + " roomsCount: " + rooms.Count); 151- callForNextRoomWithDoorIn = ChooseTheRandomDirection (rooms [lastRoomCreatedIn_Index].lastCreatedRoomAt); ![alt text][1] [1]: /storage/temp/112202-untitled.png

Viewing all articles
Browse latest Browse all 2891

Trending Articles



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