// Use this for initialization void Start() { theOrder = FindObjectOfType <OrderManager>(); thePlayerStat = FindObjectOfType <PlayerStat>(); theOOC = FindObjectOfType <OkOrCancle>(); theInven = FindObjectOfType <Inventory>(); }
// Use this for initialization void Start() { instance = this; theOrder = FindObjectOfType <OrderManager>(); theDatabase = FindObjectOfType <DatabaseManager>(); theOOC = FindObjectOfType <OkOrCancle>(); theEquip = FindObjectOfType <Equipment>(); inventoryItemList = new List <Item>(); inventoryTabList = new List <Item>(); slots = tf.GetComponentsInChildren <InventorySlot>(); //흐미 데이터베이터랑 다른 다른데이터임 inventoryItemList.Add(new Item(20001, "검", "기본검", Item.ItemType.Equip, 3)); }