Ejemplo n.º 1
0
    private void SetUp(Resource resource, int incrementAmount, SendShipViewController sendShipViewController)
    {
        this.resource  = resource;
        this.increaser = incrementAmount;
        this.sendShipViewController = sendShipViewController;

        var icon = Resources.Load <Sprite>($"UI/Icons/Resources/{resource.ResourceType}");

        this.icon.sprite = icon;

        ResourceType = resource.ResourceType;

        Amount          = resource.Amount;
        amountText.text = Amount.ToString();

        lessButton.onClick += OnLessPress;
        moreButton.onClick += OnMorePress;
    }
Ejemplo n.º 2
0
 public void SetUpAdjuster(Resource resource, int incrementAmount, SendShipViewController sendShipViewController)
 {
     SetUp(resource, incrementAmount, sendShipViewController);
 }
Ejemplo n.º 3
0
    public void SetUpAdjuster(Resource resource, bool increaseLimit, int increaseLimitAmount, SendShipViewController sendShipViewController)
    {
        hasIncreaseLimit         = increaseLimit;
        this.increaseLimitAmount = increaseLimitAmount;

        SetUp(resource, defaultIncreaserAmount, sendShipViewController);
    }
Ejemplo n.º 4
0
 public void SetUpAdjuster(Resource resource, SendShipViewController sendShipViewController)
 {
     SetUp(resource, defaultIncreaserAmount, sendShipViewController);
 }