void Start() { uIController = GameObject.Find("UIController").GetComponent <UIController>(); inventoryItemController = GameObject.Find("InventoryItemController").GetComponent <InventoryItemController>(); inventoryItemController.SetupInventoryItemController(); uIController.SetUpUIController(); GameObject.FindGameObjectWithTag("Player").GetComponent <ShipInventory>().SetupShipInventory(); GameObject[] ports = GameObject.FindGameObjectsWithTag("Port"); foreach (GameObject port in ports) { Debug.Log("Setting up " + port.name); port.GetComponent <Port>().SetupPort(); } }