コード例 #1
0
    public void handleFoodClick()
    {
        string pressedObject = eventSystem.currentSelectedGameObject.name;

        selectedFood = FoodItems.getFoodItem(pressedObject);
        deactivateButtons();
        handleModal(purchaseModal);

        Debug.Log(selectedFood.GetComponent <FoodValue>().foodName);
    }