Example #1
0
    public void OnDrop(PointerEventData eventData)
    {
        eventData.pointerDrag.gameObject.transform.SetParent(transform);
        RecetteLevelManager.Instance().AddIngredient(eventData.pointerDrag.gameObject);

        if (TutoRecipeManager.Instance() != null && TutoRecipeManager.Instance().ReturnDemand())
        {
            TutoRecipeManager.Instance().RequestDone();
        }
    }
    void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
        }

        else

        {
            instance = this;
        }
    }