private void UpdatePopupText() { if (storingItems == null) { uiFieldPopup.SetText(CraftRecipe.GetConditionName(conditionType)); } else if (currentRecipe != null) { uiFieldPopup.SetText("製作中..."); } else { uiFieldPopup.SetText("完了"); } }
// Start is called before the first frame update void Start() { popupAreaTrigger.onTriggerEnter2D = Popup; popupAreaTrigger.onTriggerExit2D = DeactivePopup; switchSceneAreaTrigger.onTriggerEnter2D = SwitchScene; uiFieldPopup = UIFieldPopup.SecureUI(transform); uiFieldPopup.SetText(enterMapScene); uiFieldPopup.DispSlider(false); }