void Start() { // Object Grid instantiatet grids ObjectGrid_Instantiate objectGridInstantiate = GetComponent <ObjectGrid_Instantiate>(); emptyIntObjectElement = objectGridInstantiate.emptyIntObjectElement; integerObjectGrid = objectGridInstantiate.integerObjectGrid; objectGrid = objectGridInstantiate.objectGrid; // Size width = integerObjectGrid.GetLength(0); length = integerObjectGrid.GetLength(1); // Blocked Space By Center Bar // TODO: Fix if grid changes size blockedSpace = new Vector2Int[] { new Vector2Int(4, 4), new Vector2Int(4, 5), new Vector2Int(5, 4), new Vector2Int(5, 5) }; }
void Start() { objectGridInstantiate = objectGrid.GetComponent <ObjectGrid_Instantiate>(); objectGridPlacement = objectGrid.GetComponent <ObjectGrid_Placement>(); stateChange = gameStateChanger.GetComponent <StateChange>(); }