Example #1
0
    void Update()
    {
        if (itemToCheck == true && DragHandeler.itemBeingDragged == null)
        {
            foreach (Item i in actionate)
            {
                if (i == DragHandeler.lastDragged)
                {
                    foreach (Condition co in AllConditions.GetConditions())
                    {
                        foreach (string con in conditions)
                        {
                            if (co.description == con)
                            {
                                co.satisfied = true;
                            }
                        }
                    }
                    p.OnInteractableClick(this);
                }
            }
        }

        itemToCheck = false;
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     poitsukka   = GameObject.Find("Poitsukka").GetComponent <Poitsukka>();
     textManager = FindObjectOfType <TextManager>();
     allCond     = AllConditions.GetConditions();
 }