void SetItemView() { int[] eqStatus = player.GetEqStatus(); if (eqStatus[0] != -1) { equipedWeapon.sprite = DB_EquipmentInventory.GetItemSrpite( DB_EquipmentInventory.GetItem(eqStatus[0]).data.itemPath ); } if (eqStatus[1] != -1) { equipedArmor.sprite = DB_EquipmentInventory.GetItemSrpite( DB_EquipmentInventory.GetItem(eqStatus[1]).data.itemPath ); } if (eqStatus[2] != -1) { equipedAcc.sprite = DB_EquipmentInventory.GetItemSrpite( DB_EquipmentInventory.GetItem(eqStatus[2]).data.itemPath ); } }
private void Start() { inventoryEquip = FindObjectOfType <UICon_Inventory> (); equipment = DB_EquipmentInventory.GetItem(equipmentId); Initial(); }