I am creating a grid of 10 x 10 boxes (Up to 100 x 100)
I would like to take a struct and initialize an array to a specific size.
If you suggest another method to achieving this result, please include an example.
public struct Box { // The struct used in the BoxArray public int firstModel; public Vector3 firstLocation; public int secondModel; public Vector3 secondLocation; public bool emptyBox; }; public Box [] BoxArray; // Initializes the arra public class DoStuff : MonoBehaviour{ // How do I access and set the variables in BoxArray[5]? // using 5 as an example }