protected override void SetInformation(IShipLocation location) { Crew crew = crewLocation.current; CrewInfo info = CrewLibrary.instance.GetInfo(crew.type); _background.color = info.backgroundColor; _filled.color = info.frontColor; _filled.fillAmount = crew.progress01; _icon.sprite = info.icon; }
protected override void SetInformation(IShipLocation location) { _fishCount.enabled = !isOver; FishInfo info = FishLibrary.instance.GetFishInfo(hold.fishType); _background.color = info.holdBackgroundColor; _filled.color = info.holdFrontColor; _filled.fillAmount = hold.fishCount / (float)hold.capacity; _fullIndicator.enabled = (_filled.fillAmount == 1f); _fishCount.text = hold.fishCount.ToString(); _icon.sprite = info.icon; }
public void Refresh(IShipLocation location) { _location = location; if (location.isEmpty) { SetEmpty(); } else { _filled.enabled = true; _icon.enabled = true; SetInformation(location); } }
protected abstract void SetInformation(IShipLocation location);