Пример #1
0
    public override void ItemUse(int i)
    {

        
        ItemBagList.itemBagStuffList[i].ItemPic = SwapMethodCaller.SwordWeaponChange();
        ChatBoxController chatCon = GameObject.Find("Player").GetComponent<ChatBoxController>();
        
        if (thsSI == 0)
        {
            Debug.Log(0);
            thsSI++;
            ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["THSword"];
          chatCon.StartCoroutine(chatCon.ChatBoxOpener("좋은대화수단이지!"));
        }
        else if (thsSI == 1)
        {

            Debug.Log(1);
            thsSI--;

            ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["UTHSword"];
            chatCon.StartCoroutine(chatCon.ChatBoxOpener("왜...?"));
        }
        
        methodCaller.WhatIsInBag();
        Debug.Log("실행됬니?");
    }
Пример #2
0
    public override void ItemUse(int i)
    {
        ItemBagList.itemBagStuffList[i].ItemPic = SwapMethodCaller.MagicWeaponChange();
        ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>();

        if (magicSI == 0)
        {
            Debug.Log(0);
            magicSI++;
            ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["MagicStaff"];
            chatCon.StartCoroutine(chatCon.ChatBoxOpener("닝겐노지팡이와 튼튼데스"));
        }
        else if (magicSI == 1)
        {
            Debug.Log(1);
            magicSI--;

            ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["UMagicStaff"];
            chatCon.StartCoroutine(chatCon.ChatBoxOpener("하드모드?.."));
        }

        methodCaller.WhatIsInBag();
    }