Пример #1
0
    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;
    }
Пример #2
0
    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;
    }
Пример #3
0
    public void Refresh(IShipLocation location)
    {
        _location = location;

        if (location.isEmpty)
        {
            SetEmpty();
        }
        else
        {
            _filled.enabled = true;
            _icon.enabled   = true;

            SetInformation(location);
        }
    }
Пример #4
0
 protected abstract void SetInformation(IShipLocation location);