Unity 3D/팀 프로젝트
itemdatabase.cs
猫猫
2015. 3. 24. 10:26
반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | using UnityEngine; using System.Collections.Generic; using System.Collections; public class ItemDatabases : MonoBehaviour { public List<Item> items = new List<Item>(); void Awake() { items.Add ( new Item("bronze sword", 0, "sword",2, 0, Item.ItemType.Weapon ) ); items.Add ( new Item("Healing potion", 1, "healing potion",0, 0, Item.ItemType.Consumable ) ); //items.Add ( new Item("파일이름", 아이디, "설명",파워, 스피드, enum으로정의된 타입 ) ); } } | cs |
반응형