// Use this for initialization void Start() { theInven = FindObjectOfType <Inventory>(); theOrder = FindObjectOfType <orderManager>(); theAudio = FindObjectOfType <AudioManager>(); thePlayerStat = FindObjectOfType <PlayerStat>(); theOOC = FindObjectOfType <OkOrCancel>(); }
void Start() { instance = this; inventoryItemList = new List <Item>(); inventoryTapList = new List <Item>(); slots = tf.GetComponentsInChildren <InventorySlot>(); database = FindObjectOfType <DataBaseManager>(); ooc = FindObjectOfType <OkOrCancel>(); }
// Start is called before the first frame update void Start() { //theIV = FindObjectOfType<Inventory>(); theOOC = FindObjectOfType <OkOrCancel>(); player = FindObjectOfType <PlayerController>(); ui = FindObjectOfType <UI>(); //activated = false; inputKey = true; }
// Start is called before the first frame update void Start() { instance = this; theDatabase = FindObjectOfType <DatabaseManager>(); //theOrder = FindObjectOfType<OrderManager>(); theOOC = FindObjectOfType <OkOrCancel>(); theOrder = FindObjectOfType <OrderManager>(); inventoryItemList = new List <Item>(); inventoryTabList = new List <Item>(); slots = tf.GetComponentsInChildren <InventorySlot>(); }
void Start() { theEQ = FindObjectOfType <EquimentManager>(); OOC = FindObjectOfType <OkOrCancel>(); theDatabase = FindObjectOfType <DatabaseManager>(); theOrder = FindObjectOfType <OrderManager>(); theAudio = FindObjectOfType <AudioManager>(); inventoryItemList = new List <Item>(); inventoryCategoryList = new List <Item>(); slots = gridSlot.GetComponentsInChildren <InventroySlot>(); // test code // inventoryItemList.Add(new Item(10001, "빨간 포션", "체력을 100만큼 회복!", Item.ItemType.USE)); inventoryItemList.Add(new Item(10002, "파랑 포션", "마나를 100만큼 회복!", Item.ItemType.USE)); }