Beispiel #1
0
 // 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);
 }
Beispiel #2
0
 private void EndCraft()
 {
     if (currentRecipe != null && IngameTime.Time < craftEndTime)
     {
         UIInstantMessage.Instance.RequestMessage("製作を中断しました");
     }
     currentRecipe = null;
     uiFieldPopup.DispSlider(false);
     UpdatePopupText();
     craftingSound?.Stop();
 }