예제 #1
0
    public void onclick()
    {
        ItemDataBase DataBase = GameObject.Find("MyDataBase").GetComponent <ItemDataBase> ();

        switch (itemType)
        {
        case Item.ItemType.Item:
            break;

        case Item.ItemType.Accessory:
            DataBase.SetPlayerAccessory(itemID);
            break;

        case Item.ItemType.Dress:
            DataBase.SetPlayerDress(itemID);
            break;

        case Item.ItemType.Weapon:
            DataBase.SetPlayerWeapon(itemID);
            break;

        default:
            break;
        }
    }