// Update is called once per frame void Update() { // Setting booleans depending on player inventory | If they have the item or not hasExt = playerInventory.getHasShipPart(Player_Inventory.ShipPart.Extinguisher); hasHammer = playerInventory.getHasShipPart(Player_Inventory.ShipPart.Hammer); hasPipe = playerInventory.getHasShipPart(Player_Inventory.ShipPart.Pipe); hasSpanner = playerInventory.getHasShipPart(Player_Inventory.ShipPart.Spanner); hasSpring = playerInventory.getHasShipPart(Player_Inventory.ShipPart.Spring); if (engine && lifeSupport && reactor && controls & battery) { // End game animation?? Possibly a Coroutine GameStateController.Instance.endGame(); } }