// Start is called before the first frame update void Start() { hexObjectsArray = Resources.FindObjectsOfTypeAll(typeof(HexData)) as HexData[]; hexController = FindObjectOfType <HexController>(); hexController.setObjectsArray(hexObjectsArray); }