private void SetDescriptionUncollected(BaseIdeaSlot baseIdeaSlot) { nameIdea.text = baseIdeaSlot.IDEASLOT.IdeaName; typeIdea.text = ConvertType.ConvertIdeaTypeToString(baseIdeaSlot.IDEASLOT.IdeaType); descriptionIdea.text = INST_DefaultDescription; imageIdea.sprite = INST_Sprite; }
private void SetDescriptinoCollected(BaseIdeaSlot baseIdeaSlot) { nameIdea.text = baseIdeaSlot.IDEASLOT.IdeaName; typeIdea.text = ConvertType.ConvertIdeaTypeToString(baseIdeaSlot.IDEASLOT.IdeaType); descriptionIdea.text = baseIdeaSlot.IDEASLOT.Description; imageIdea.enabled = true; imageIdea.sprite = baseIdeaSlot.IDEASLOT.IdeaImage; }
private void OnPointEnterIdeaSlotHandler(BaseIdeaSlot baseIdeaSlot) { descriptionGameObject.SetActive(true); if (!baseIdeaSlot.IDEASLOT.Collected) { SetDescriptionUncollected(baseIdeaSlot); } else { SetDescriptinoCollected(baseIdeaSlot); } }
private void OnPointExitIdeaSlotHandler(BaseIdeaSlot baseIdeaSlot) { descriptionGameObject.SetActive(false); }
protected void OnPointEnterIdeaSlotEventHandler(BaseIdeaSlot baseIdeaSlot) { OnPointEnterIdeaSlotEvent?.Invoke(baseIdeaSlot); }