public void Setup(GatheringObject _gatheringObject) { gatheringObject = _gatheringObject; gatheringButton.SetGatheringObjectDisplay(this, gatheringObject); PeopleManager.instance.NewGatheringObj(this); hoverElement.TooltipInitialize(gatheringObject.name); }
public void SetGatheringObjectDisplay(GatheringObjectDisplay _gatheringObjectDisplay, GatheringObject _gatheringObject) { gatheringObjectDisplay = _gatheringObjectDisplay; gatheringObject = _gatheringObject; if (!gatheringObject.isManuelGatherable) { slider.value = 0; button.interactable = false; } buttonText.text = gatheringObject.buttonName; }