Пример #1
0
 void OnMouseUp()
 {
     if (mouseDown && !PauseMenu.isPaused)
     {
         equipIngredient.ClickOnObject(gameObject);
         mouseDown = false;
     }
 }
Пример #2
0
    public void OnMouseUp()
    {
        if (equipIngredient.equippedObject != null)
        {
            AddIngredient(equipIngredient.equippedObject);

            if (MonsterSpawner.inTutorial && (!YarnBarTending.multipleIngredients ||
                                              (currentDrink.GetAmount() == 4 && dataStorage.currentDay == 0) ||
                                              (currentDrink.GetAmount() == 3 && dataStorage.currentDay == 1) ||
                                              (currentDrink.GetAmount() == 3 && dataStorage.currentDay == 2)))
            {
                equipIngredient.equippedObject.GetComponent <HoverHighlight>().isEnabled  = false;
                equipIngredient.equippedObject.GetComponent <ClickIngredient>().isEnabled = false;
                equipIngredient.ClickOnObject(equipIngredient.equippedObject);
                YarnBarTending.EnableDialogueFunctions();
                YarnBarTending.multipleIngredients = false;
            }
        }
    }