cleanup project, moved scripts into folders
6 files modified
29 files renamed
4 files added
2 files copied
2 files deleted
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 94d71be54d8edea4e966df4e9f78305c |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d0c5c1a51f4832f46b2f0b287fd814c4 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
File was renamed from Assets/Scripts/Helpers/TextMeshProHelper.cs |
| | |
| | | |
| | | namespace Assets.Scripts.Helpers |
| | | { |
| | | internal static class TextMeshProHelper |
| | | internal static class UIHelper |
| | | { |
| | | |
| | | /// <summary> |
copy from Assets/Scripts/Helpers/TextMeshProHelper.cs.meta
copy to Assets/Scripts/Helpers/UIHelper.cs.meta
File was copied from Assets/Scripts/Helpers/TextMeshProHelper.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e02839e1c3723074b9545eb763e71e66 |
| | | guid: 9c811496d5227ee4a82e47e3286abd68 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | |
| | | |
| | | private void UpdateItemContentList() |
| | | { |
| | | TextMeshProHelper.UpdateItemMaxCountText(inventoryMaxAmount.GetComponent<TextMeshProUGUI>(), inventory.items.Count, inventory.maxInventorySize); |
| | | UIHelper.UpdateItemMaxCountText(inventoryMaxAmount.GetComponent<TextMeshProUGUI>(), inventory.items.Count, inventory.maxInventorySize); |
| | | |
| | | // First, deactivate all existing itemUIs |
| | | itemUIs.ForEach(itemUI => itemUI.SetActive(false)); |
| | |
| | | gameObject.transform.Find("ItemName").GetComponent<TextMeshProUGUI>().text = inventorySlot.item.itemName; |
| | | gameObject.transform.Find("ItemQuantity").GetComponent<TextMeshProUGUI>().text = inventorySlot.quantity.ToString() + "x"; |
| | | gameObject.transform.Find("ItemIcon").GetComponent<Image>().sprite = inventorySlot.item.itemIcon; |
| | | TextMeshProHelper.UpdateItemMaxCountText(gameObject.transform.Find("ItemQuantity").GetComponent<TextMeshProUGUI>(), inventorySlot.quantity, inventorySlot.item.maxStackSize); |
| | | UIHelper.UpdateItemMaxCountText(gameObject.transform.Find("ItemQuantity").GetComponent<TextMeshProUGUI>(), inventorySlot.quantity, inventorySlot.item.maxStackSize); |
| | | break; |
| | | case ItemUIType.ItemDescription: |
| | | gameObject.transform.Find("ItemTextDescription").GetComponent<TextMeshProUGUI>().text = inventorySlot.item.itemDescription; |
| | |
| | | { |
| | | Item item = dropable.dropable; |
| | | playerInventory.AddItem(item, dropable.dropAmount); |
| | | Debug.Log("CellWorldPosition: " + cellWorldPosition); |
| | | Debug.Log("TileGameObjectPosition: " + tileGameObject.transform.position); |
| | | CharacterLootObtained(tileGameObject.transform.position, item, dropable.dropAmount); |
| | | } |
| | | } |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1a23f9ac684b15e4db73957d12487fb2 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
copy from Assets/Scripts/Helpers/TextMeshProHelper.cs.meta
copy to Assets/Scripts/Prefab/PlayerFloatingText.cs.meta
File was copied from Assets/Scripts/Helpers/TextMeshProHelper.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e02839e1c3723074b9545eb763e71e66 |
| | | guid: 1bb32e3e174cc7648bf155d1e36eefe6 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
File was renamed from Assets/Scripts/Helpers/TextMeshProHelper.cs.meta |
| | |
| | | fileFormatVersion: 2 |
| | | guid: e02839e1c3723074b9545eb763e71e66 |
| | | guid: 3f6618c30bdd4184cb77d406daecc53f |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 290737008b4af1d4fbf1cf9d99fc8ae3 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | m_GameObject: {fileID: 456827189715955869} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: 60c2fd908dd4c45468c522f64c368227, type: 3} |
| | | m_Script: {fileID: 11500000, guid: 1bb32e3e174cc7648bf155d1e36eefe6, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | moveSpeed: {x: 25, y: 75, z: 0} |
| | |
| | | m_GameObject: {fileID: 456827189715955869} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: 60c2fd908dd4c45468c522f64c368227, type: 3} |
| | | m_Script: {fileID: 11500000, guid: 1bb32e3e174cc7648bf155d1e36eefe6, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | moveSpeed: {x: 25, y: 75, z: 0} |
| | |
| | | m_GameObject: {fileID: 456827189715955869} |
| | | m_Enabled: 1 |
| | | m_EditorHideFlags: 0 |
| | | m_Script: {fileID: 11500000, guid: 57e7ca40a6c68234d9c2f8677d4a803b, type: 3} |
| | | m_Script: {fileID: 11500000, guid: 3f6618c30bdd4184cb77d406daecc53f, type: 3} |
| | | m_Name: |
| | | m_EditorClassIdentifier: |
| | | moveSpeed: {x: 0.25, y: 0.75, z: 0} |