Skip to content

Instantly share code, notes, and snippets.

@joobei
Created July 31, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joobei/c8aa670e73cc8a7311b9cce217adfb77 to your computer and use it in GitHub Desktop.
Save joobei/c8aa670e73cc8a7311b9cce217adfb77 to your computer and use it in GitHub Desktop.
public static class Util
{
public static Vector3[,] generatePositions(List<int> angles, List<float> depths)
{
Vector3[,] positions = new Vector3[angles.Count,depths.Count];
^ ^
NullReferenceException: Object reference not set to an instance of an object
Util.generatePositions (System.Collections.Generic.List`1 angles, System.Collections.Generic.List`1 depths) (at Assets/Scripts/Util.cs:29)
DockingState..ctor () (at Assets/Scripts/States/DockingState.cs:32)
//do stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment