コード例 #1
0
 public void Setup(GatheringObject _gatheringObject)
 {
     gatheringObject = _gatheringObject;
     gatheringButton.SetGatheringObjectDisplay(this, gatheringObject);
     PeopleManager.instance.NewGatheringObj(this);
     hoverElement.TooltipInitialize(gatheringObject.name);
 }
コード例 #2
0
        public void SetGatheringObjectDisplay(GatheringObjectDisplay _gatheringObjectDisplay, GatheringObject _gatheringObject)
        {
            gatheringObjectDisplay = _gatheringObjectDisplay;
            gatheringObject        = _gatheringObject;

            if (!gatheringObject.isManuelGatherable)
            {
                slider.value        = 0;
                button.interactable = false;
            }
            buttonText.text = gatheringObject.buttonName;
        }