示例#1
0
 // Use this for initialization
 void Start()
 {
     theInven      = FindObjectOfType <Inventory>();
     theOrder      = FindObjectOfType <orderManager>();
     theAudio      = FindObjectOfType <AudioManager>();
     thePlayerStat = FindObjectOfType <PlayerStat>();
     theOOC        = FindObjectOfType <OkOrCancel>();
 }
示例#2
0
 void Start()
 {
     instance          = this;
     inventoryItemList = new List <Item>();
     inventoryTapList  = new List <Item>();
     slots             = tf.GetComponentsInChildren <InventorySlot>();
     database          = FindObjectOfType <DataBaseManager>();
     ooc = FindObjectOfType <OkOrCancel>();
 }
示例#3
0
    // 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;
    }
示例#4
0
 // 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>();
 }
示例#5
0
 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));
 }