【Unity3D進階4-10】Unity3D 揹包系統

一、目錄

【Unity3D從入門到進階】文章目錄及設置這個專欄的初衷

二、功能分析

面板:揹包面板、箱子面板、鍛造合成面板、裝備佩戴面板、商店面板等
功能:面板的顯示和隱藏、保存和加載、拾起物品、物品移動、物品出售和購買等

三、示意圖

在這裏插入圖片描述
物品類Item主要分爲幾類:
消耗品Consumable、裝備Equipment、武器Weapon、材料Material
消耗品Consumable:影響HP/MP
裝備Equipment:影響strength/ intelligence/ agility/ stamina等
    裝備類型有:head/ neck/ chest/ ring/ leg/ bracer/ boots/ shoulder/ belt/ offHand
武器Weapon:影響攻擊力
材料Material:材料合成裝備和武器
    
物品類Item公有變量    
id/ name/ type/ quality/ description/ capacity/ buyprice/ sellprice
消耗品變量:
  hp/ mp
裝備變量:
  strength/ intelligence/ agility/ stamina

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章