void UpdateUI(ResourceType resourceType, bool interactable) { switch (mode) { case Mode.Merchant: resourceViewers[(int)resourceType].Setup(activeShipInventory.GetResource(resourceType), interactable, myHarbor.GetResourceValue(resourceType)); break; case Mode.Boarding: resourceViewers[(int)resourceType].Setup(activeShipInventory.GetResource(resourceType), interactable, ResourceInventory.GetDefaultValue(resourceType)); break; } SetTexts(); }