Exemplo n.º 1
0
 public void ShowDescription(C_InWorldItem theItem)
 {
     theItem.buttonsCurrent.SetActive (false);
     if(PlayerPrefs.GetInt("Language") == 1)
         DisplayDescriptionBox(theItem.item.itemDescription);
     else
         DisplayDescriptionBox(theItem.item.itemDescriptionDutch);
 }
Exemplo n.º 2
0
    public void PickUpItem(C_InWorldItem theItem)
    {
        if (!ObtainItem (theItem.item))
        {
            _clickButton = true;
            return;
        }

        // Set conditions
        //C_ChapterManager.currentChapter.pickedUpItems.Add (theItem.item.itemName);
        C_ChapterManager.currentChapter.destroyedObjects.Add (theItem.name);

        _showButtons = false;
        _activatedButtons = null;
        Destroy (theItem.buttonsCurrent);
        if (theItem.destroyableObject)
            Destroy (theItem.gameObject);
        else
            theItem.accessiblePlayer = E_Player.None;
        _clickButton = true;
    }