From 9201677c1be9fcfce947c47c5cdf05100f732ddb Mon Sep 17 00:00:00 2001 From: julius Date: Thu, 10 Feb 2022 19:56:25 +0100 Subject: [PATCH] -Added Items -Added item stacking -adding and removing items --- Assets/Player/NewBehaviourScript.cs | 18 +++ Assets/Player/NewBehaviourScript.cs.meta | 11 ++ Assets/Scripts.meta | 8 ++ Assets/Scripts/Inventory.meta | 8 ++ Assets/Scripts/Inventory/FoodItem.cs | 10 ++ Assets/Scripts/Inventory/FoodItem.cs.meta | 11 ++ Assets/Scripts/Inventory/Inventory.cs | 117 +++++++++++++++++ Assets/Scripts/Inventory/Inventory.cs.meta | 11 ++ .../Scripts/Inventory/InventoryController.cs | 33 +++++ .../Inventory/InventoryController.cs.meta | 11 ++ Assets/Scripts/Inventory/Item.cs | 12 ++ Assets/Scripts/Inventory/Item.cs.meta | 11 ++ Assets/Scripts/Inventory/ItemAtlas.cs | 19 +++ Assets/Scripts/Inventory/ItemAtlas.cs.meta | 11 ++ Assets/Scripts/Inventory/Items.meta | 8 ++ Assets/Scripts/Inventory/Items/Stone.asset | 18 +++ .../Scripts/Inventory/Items/Stone.asset.meta | 8 ++ Assets/Scripts/Inventory/Items/Tomato.asset | 21 +++ .../Scripts/Inventory/Items/Tomato.asset.meta | 8 ++ Assets/Scripts/Inventory/Slot.cs | 43 ++++++ Assets/Scripts/Inventory/Slot.cs.meta | 11 ++ Assets/Scripts/Inventory/UI_Inventory.cs | 46 +++++++ Assets/Scripts/Inventory/UI_Inventory.cs.meta | 11 ++ Assets/Sprites.meta | 8 ++ Assets/Sprites/Stein.png | Bin 0 -> 1366 bytes Assets/Sprites/Stein.png.meta | 122 ++++++++++++++++++ Assets/Sprites/Tomato.png | Bin 0 -> 1192 bytes Assets/Sprites/Tomato.png.meta | 98 ++++++++++++++ Assets/Sprites/box.png | Bin 0 -> 719 bytes Assets/Sprites/box.png.meta | 98 ++++++++++++++ 30 files changed, 791 insertions(+) create mode 100644 Assets/Player/NewBehaviourScript.cs create mode 100644 Assets/Player/NewBehaviourScript.cs.meta create mode 100644 Assets/Scripts.meta create mode 100644 Assets/Scripts/Inventory.meta create mode 100644 Assets/Scripts/Inventory/FoodItem.cs create mode 100644 Assets/Scripts/Inventory/FoodItem.cs.meta create mode 100644 Assets/Scripts/Inventory/Inventory.cs create mode 100644 Assets/Scripts/Inventory/Inventory.cs.meta create mode 100644 Assets/Scripts/Inventory/InventoryController.cs create mode 100644 Assets/Scripts/Inventory/InventoryController.cs.meta create mode 100644 Assets/Scripts/Inventory/Item.cs create mode 100644 Assets/Scripts/Inventory/Item.cs.meta create mode 100644 Assets/Scripts/Inventory/ItemAtlas.cs create mode 100644 Assets/Scripts/Inventory/ItemAtlas.cs.meta create mode 100644 Assets/Scripts/Inventory/Items.meta create mode 100644 Assets/Scripts/Inventory/Items/Stone.asset create mode 100644 Assets/Scripts/Inventory/Items/Stone.asset.meta create mode 100644 Assets/Scripts/Inventory/Items/Tomato.asset create mode 100644 Assets/Scripts/Inventory/Items/Tomato.asset.meta create mode 100644 Assets/Scripts/Inventory/Slot.cs create mode 100644 Assets/Scripts/Inventory/Slot.cs.meta create mode 100644 Assets/Scripts/Inventory/UI_Inventory.cs create mode 100644 Assets/Scripts/Inventory/UI_Inventory.cs.meta create mode 100644 Assets/Sprites.meta create mode 100644 Assets/Sprites/Stein.png create mode 100644 Assets/Sprites/Stein.png.meta create mode 100644 Assets/Sprites/Tomato.png create mode 100644 Assets/Sprites/Tomato.png.meta create mode 100644 Assets/Sprites/box.png create mode 100644 Assets/Sprites/box.png.meta diff --git a/Assets/Player/NewBehaviourScript.cs b/Assets/Player/NewBehaviourScript.cs new file mode 100644 index 0000000..6968256 --- /dev/null +++ b/Assets/Player/NewBehaviourScript.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class NewBehaviourScript : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/Player/NewBehaviourScript.cs.meta b/Assets/Player/NewBehaviourScript.cs.meta new file mode 100644 index 0000000..959c8eb --- /dev/null +++ b/Assets/Player/NewBehaviourScript.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bb3c3ce5cbe10db4dbaaf142ba932ca3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts.meta b/Assets/Scripts.meta new file mode 100644 index 0000000..b8b0978 --- /dev/null +++ b/Assets/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a2d0aec177277504e9ba6d295e14334c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory.meta b/Assets/Scripts/Inventory.meta new file mode 100644 index 0000000..1c64f9c --- /dev/null +++ b/Assets/Scripts/Inventory.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 27c09b7e7d0e7824f882a062a77737c2 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/FoodItem.cs b/Assets/Scripts/Inventory/FoodItem.cs new file mode 100644 index 0000000..ef65e4c --- /dev/null +++ b/Assets/Scripts/Inventory/FoodItem.cs @@ -0,0 +1,10 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +[CreateAssetMenu(fileName = "FoodItem", menuName = "Items/FoodItem", order = 2)] +public class FoodItem : Item +{ + public int health; + public int water; + public int regeneration; +} diff --git a/Assets/Scripts/Inventory/FoodItem.cs.meta b/Assets/Scripts/Inventory/FoodItem.cs.meta new file mode 100644 index 0000000..948f09e --- /dev/null +++ b/Assets/Scripts/Inventory/FoodItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f6fecdcda7efd84baa350f4c41432a6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Inventory.cs b/Assets/Scripts/Inventory/Inventory.cs new file mode 100644 index 0000000..37ee16d --- /dev/null +++ b/Assets/Scripts/Inventory/Inventory.cs @@ -0,0 +1,117 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Inventory : MonoBehaviour +{ + + [SerializeField]public List inventory = new List(); + [SerializeField] int maxSize; + + public List getInventory { get => inventory; set => inventory = value; } + public void createEmptyInventory(int size) + { + inventory = new List(); + for (int i = 0; i < size; i++) + { + inventory.Add(new Slot(10)); + } + + } + bool indexIsInRange(int index) + { + if (index < maxSize && index >= 0) + { + return true; + } + else + { + return false; + } + } + public int addItemAt(int index, Item itemType,int count) + { + + if (indexIsInRange(index) && (inventory[index].ItemType == null || inventory[index].ItemType.id == itemType.id)) + { + if (inventory[index].ItemType == null) + { + inventory[index].ItemType = Instantiate(itemType); + } + + if (inventory[index].MaxItems == inventory[index].Count) + { + return count; + } + else if (inventory[index].MaxItems >= inventory[index].Count + count) + { + inventory[index].addItem(count); + return 0; + } else + { + int rest = count - inventory[index].MaxItems - inventory[index].Count; + inventory[index].addItem(inventory[index].MaxItems - inventory[index].Count); + return rest; + } + } + else + { + //Wrong item or index not in range + return -1; + } + } + public int removeItemAt(int index, int count) + { + + if (inventory[index].ItemType != null && indexIsInRange(index)) + { + for (int i = 0; i < count; i++) + { + if (!inventory[index].removeItem()) + { + return count - i; + } + } + return 0; + } + else + { + //index not in range + return -1; + } + } + /* + Item findItem(Item itemType) + { + for (int i = 0; i < items.Length; i++) + { + if (items[i] == null) + { + return i; + } + } + return -1; + } + bool removeItem(Item item,int count = 1) + { + + return true; + } + bool removeItemAt(int index,int count = -1) + { + + } + Item getItemAt(int index) + { + if (index < maxSize && index >= 0) + { + return items[index]; + } + else + { + return null; + } + + } + */ +} diff --git a/Assets/Scripts/Inventory/Inventory.cs.meta b/Assets/Scripts/Inventory/Inventory.cs.meta new file mode 100644 index 0000000..8e85ac9 --- /dev/null +++ b/Assets/Scripts/Inventory/Inventory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee2fcb6d299019740bbede78bbc6a1d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/InventoryController.cs b/Assets/Scripts/Inventory/InventoryController.cs new file mode 100644 index 0000000..54cbe31 --- /dev/null +++ b/Assets/Scripts/Inventory/InventoryController.cs @@ -0,0 +1,33 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class InventoryController : MonoBehaviour +{ + [SerializeField] Item item1;// not needed + [SerializeField] Item item2;// not needed + public Inventory inventory; + [SerializeField] UI_Inventory uiInventory; + private void Awake() + { + inventory = transform.GetComponent(); + inventory.createEmptyInventory(5); + Debug.Log(inventory.addItemAt(0, item1, 8)); + Debug.Log(inventory.addItemAt(0, item1, 1)); + Debug.Log(inventory.addItemAt(3, item2, 15)); + Debug.Log(inventory.addItemAt(0, item2, 15)); + Debug.Log(inventory.getInventory[0].Count); + + uiInventory.setInventory(inventory); + } + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/Scripts/Inventory/InventoryController.cs.meta b/Assets/Scripts/Inventory/InventoryController.cs.meta new file mode 100644 index 0000000..4eccd65 --- /dev/null +++ b/Assets/Scripts/Inventory/InventoryController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cff3b5ce3863a7442a86b400700ff131 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Item.cs b/Assets/Scripts/Inventory/Item.cs new file mode 100644 index 0000000..66753d1 --- /dev/null +++ b/Assets/Scripts/Inventory/Item.cs @@ -0,0 +1,12 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +[CreateAssetMenu(fileName = "Item", menuName = "Items/Item", order = 1)] +public class Item : ScriptableObject +{ + public new string name; + public int id; + public bool isStackable; + public Sprite sprite; +} diff --git a/Assets/Scripts/Inventory/Item.cs.meta b/Assets/Scripts/Inventory/Item.cs.meta new file mode 100644 index 0000000..de9863c --- /dev/null +++ b/Assets/Scripts/Inventory/Item.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: de55e2e3081d4ee4a9d0737e718a5b3b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/ItemAtlas.cs b/Assets/Scripts/Inventory/ItemAtlas.cs new file mode 100644 index 0000000..44e5ba4 --- /dev/null +++ b/Assets/Scripts/Inventory/ItemAtlas.cs @@ -0,0 +1,19 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class ItemAtlas : MonoBehaviour +{ + public static ItemAtlas Instance { get; private set; } + + private void Awake() + { + Instance = this; + } + enum ItemTypes { + STONE,TOMATO + + } + public Sprite stoneSprite; + public Sprite woodSprite; +} diff --git a/Assets/Scripts/Inventory/ItemAtlas.cs.meta b/Assets/Scripts/Inventory/ItemAtlas.cs.meta new file mode 100644 index 0000000..eeeec63 --- /dev/null +++ b/Assets/Scripts/Inventory/ItemAtlas.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 362c4fe8229e41c46b489ad07bfa9133 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Items.meta b/Assets/Scripts/Inventory/Items.meta new file mode 100644 index 0000000..ffadd7a --- /dev/null +++ b/Assets/Scripts/Inventory/Items.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: db274161008cc6a4a8c92d42b6a81832 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Items/Stone.asset b/Assets/Scripts/Inventory/Items/Stone.asset new file mode 100644 index 0000000..7bea6e7 --- /dev/null +++ b/Assets/Scripts/Inventory/Items/Stone.asset @@ -0,0 +1,18 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: de55e2e3081d4ee4a9d0737e718a5b3b, type: 3} + m_Name: Stone + m_EditorClassIdentifier: + name: Stone + id: 0 + isStackable: 1 + sprite: {fileID: 21300000, guid: 475f050511847c0499c1ca4f47fcaefa, type: 3} diff --git a/Assets/Scripts/Inventory/Items/Stone.asset.meta b/Assets/Scripts/Inventory/Items/Stone.asset.meta new file mode 100644 index 0000000..2e2e48f --- /dev/null +++ b/Assets/Scripts/Inventory/Items/Stone.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e04039a6cbed5e5439b605aeee90485f +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Items/Tomato.asset b/Assets/Scripts/Inventory/Items/Tomato.asset new file mode 100644 index 0000000..4c0cc67 --- /dev/null +++ b/Assets/Scripts/Inventory/Items/Tomato.asset @@ -0,0 +1,21 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0f6fecdcda7efd84baa350f4c41432a6, type: 3} + m_Name: Tomato + m_EditorClassIdentifier: + name: Tomato + id: 1 + isStackable: 1 + sprite: {fileID: 21300000, guid: 5ee3152fa9663e94092921b0bd6b4821, type: 3} + health: 15 + water: 10 + regeneration: 2 diff --git a/Assets/Scripts/Inventory/Items/Tomato.asset.meta b/Assets/Scripts/Inventory/Items/Tomato.asset.meta new file mode 100644 index 0000000..2ac23e8 --- /dev/null +++ b/Assets/Scripts/Inventory/Items/Tomato.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a29513e23691eb0408e3b0e1a8e99148 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/Slot.cs b/Assets/Scripts/Inventory/Slot.cs new file mode 100644 index 0000000..78e67b6 --- /dev/null +++ b/Assets/Scripts/Inventory/Slot.cs @@ -0,0 +1,43 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Slot +{ + + Item item; + int maxItems; + int count; + public Slot(int maxItems) + { + item = null; + this.maxItems = maxItems; + count = 0; + + } + public bool removeItem() + { + if (count > 0) + { + count--; + if (count == 0) + { + item = null; + } + return true; + } + else + { + return false; + } + } + public bool addItem(int count = 1) + { + this.count += count; + return true; + + } + public Item ItemType { get => item; set => item = value; } + public int Count { get => count; set => count = value; } + public int MaxItems { get => maxItems; set => maxItems = value; } +} diff --git a/Assets/Scripts/Inventory/Slot.cs.meta b/Assets/Scripts/Inventory/Slot.cs.meta new file mode 100644 index 0000000..6a1248a --- /dev/null +++ b/Assets/Scripts/Inventory/Slot.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 497c0b5449a4c3141b273db4d97546c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Inventory/UI_Inventory.cs b/Assets/Scripts/Inventory/UI_Inventory.cs new file mode 100644 index 0000000..69d4664 --- /dev/null +++ b/Assets/Scripts/Inventory/UI_Inventory.cs @@ -0,0 +1,46 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class UI_Inventory : MonoBehaviour +{ + Inventory playerInventory; + public Transform inventoryContainer; + public Transform itemSlotTemplate; + private void Awake() + { + //itemSlotTemplate = inventoryContainer.Find("containerTemplate"); + } + public void setInventory(Inventory inventory) + { + playerInventory = inventory; + updateInventory(); + } + private void updateInventory() + { + int x = 0; + int y = 0; + float slotSize = 100; + foreach (Slot slot in playerInventory.getInventory) + { + RectTransform itemSlotRectTransform = Instantiate(itemSlotTemplate, inventoryContainer).GetComponent(); + itemSlotRectTransform.anchoredPosition = new Vector2(x* slotSize,y * slotSize); + itemSlotRectTransform.gameObject.SetActive(true); + + + if (slot.ItemType != null) + { + Transform Item = itemSlotRectTransform.Find("ItemTemplate"); + Item.gameObject.SetActive(true); + Item.GetComponent().sprite = slot.ItemType.sprite; + } + x++; + if (x > 3) + { + x = 0; + y--; + } + } + } +} diff --git a/Assets/Scripts/Inventory/UI_Inventory.cs.meta b/Assets/Scripts/Inventory/UI_Inventory.cs.meta new file mode 100644 index 0000000..62cbb2f --- /dev/null +++ b/Assets/Scripts/Inventory/UI_Inventory.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2270781166138a84fa19eefc3f92bda6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites.meta b/Assets/Sprites.meta new file mode 100644 index 0000000..397d8ed --- /dev/null +++ b/Assets/Sprites.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8b539477124253f4e94a4d2de537faf5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Sprites/Stein.png b/Assets/Sprites/Stein.png new file mode 100644 index 0000000000000000000000000000000000000000..1847ce25d9399ad699e19896fbb6a7bb0a6a107b GIT binary patch literal 1366 zcmV-c1*!UpP)EX>4Tx04R}tkv&MmKpe$iQ^g`x2Rle{2w0sgh>AE$6^me@v=v%)FuC*#nlvOS zE{=k0!NHHks)LKOt`4q(Aou~|=;Wm6A|?JWDYS_3;J6>}?mh0_0Yam~RI_UWP&La) z#baVNw<`9$LO=lh2xCNIrk+SIX5cx#?&0I>U6f~epZjz4DS49tK9P8i>4rtTK|Hf* z>74h8L#!kz#OK8023?T&k?XR{Z=8z`3p_JqWK#3QA!4!E!Ey()lA#h$6Gs$PqkJLj zvch?bvs$UK);;+PgL!Qw&2^f?h+_!}Bq2gZ4P{hdAxf)8iis5M$2|OD$DbsZOs+B* zITlcb3d!+<|H1EW&BD~An-q)z-7mKNF$(nT0?oQ@e;?a+^91le16NwxUu^)hpQP8@ zTI2{A*aj}H+nT%wT zj1?(+-Q(SX&ffk#)9UXBV{3Au{4nM?00006VoOIv0RI600RN!9r;`8x010qNS#tmY zE+YT{E+YYWr9XB6000McNliru<^l*01q)I{LqGrk02y>eSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00S;bL_t(o!|j$oPa{Vd#(z8BwT*o^auAYjxiVIOC=DR0 z2JKmXjpLd@3&%!gF@u|c3!2J;*3fu?g!~cW02sj}8Ujz6oF#l+V1;D|< z!OPv<-QNK?Uta@!4z&HfGlOUnW`I}}@b>rj=hxQOzNyt}f5u|5uMQ6n zjZ7vJeqba*KA)%4>CkSszX$3-ZI-jfjJftWQmIsys@3Wxz}D6lg+hUNJWf8J2cXet zJZvxwT-U|6Z3cq@i9~|4vomgPZUDXpehXyFl)*VaeMH!zVzJ2j`Z{xSa}SXy1hH5Q z+qTDRq?EX>i|2Xo4mS)=PEPc60ceF?x6b7#(9Y#@6bc0v7Zw%qbSRV>796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al 0 HcmV?d00001 diff --git a/Assets/Sprites/box.png.meta b/Assets/Sprites/box.png.meta new file mode 100644 index 0000000..5fe661e --- /dev/null +++ b/Assets/Sprites/box.png.meta @@ -0,0 +1,98 @@ +fileFormatVersion: 2 +guid: dcd161e8a16b2c54690556131edbedde +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 11 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMasterTextureLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + lightmap: 0 + compressionQuality: 50 + spriteMode: 1 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 1 + spriteTessellationDetail: -1 + textureType: 8 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: 5e97eb03825dee720800000000000000 + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: