コード例 #1
0
    private void DropItem(int index)
    {
        if (items[itemIndex] != null)
        {
            items[itemIndex].GetComponent <UseableItem>().UnUse();

            items[index].GetComponent <Item>().Drop();
            if (FacingRight == false)
            {
                SimpleFunctions.Flip(items[index]);
            }
            items[index] = null;
        }
        actionBar.RefteshItem();
    }