Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 699 Bytes

scriptable-object.md

File metadata and controls

22 lines (16 loc) · 699 Bytes

学习和使用 Scriptable Object

请阅读这两篇文章:

谈谈你对 Scriptable Object 的理解.请在项目中使用 Scriptable Object 制作这么一份数据:

Hero {
    "attack": { "type": "int", "default": "20" },
    "magic": { "type": "int", "default": "30" },
    "maxHP": { "type": "int", "default": "100" },
    "maxMP": { "type": "int", "default": "100" },
    "icon": { "type": "Texture2D", "default": "avatar.png" }
}

参考阅读