├── .gitignore ├── .vscode └── settings.json ├── Assets ├── GameData.meta ├── GameData │ ├── Elements.meta │ ├── Elements │ │ ├── Element_Air.asset │ │ ├── Element_Air.asset.meta │ │ ├── Element_Arcane.asset │ │ ├── Element_Arcane.asset.meta │ │ ├── Element_Dark.asset │ │ ├── Element_Dark.asset.meta │ │ ├── Element_Earth.asset │ │ ├── Element_Earth.asset.meta │ │ ├── Element_Fire.asset │ │ ├── Element_Fire.asset.meta │ │ ├── Element_Light.asset │ │ ├── Element_Light.asset.meta │ │ ├── Element_Water.asset │ │ └── Element_Water.asset.meta │ ├── Rarities.meta │ └── Rarities │ │ ├── Rarity_Common.asset │ │ ├── Rarity_Common.asset.meta │ │ ├── Rarity_Epic.asset │ │ ├── Rarity_Epic.asset.meta │ │ ├── Rarity_Legendary.asset │ │ ├── Rarity_Legendary.asset.meta │ │ ├── Rarity_Rare.asset │ │ ├── Rarity_Rare.asset.meta │ │ ├── Rarity_Uncommon.asset │ │ └── Rarity_Uncommon.asset.meta ├── GameEvents.meta ├── GameEvents │ ├── Inventory.meta │ ├── Inventory │ │ ├── GameEvent_Inventory_OnInventoryItemsUpdated.asset │ │ ├── GameEvent_Inventory_OnInventoryItemsUpdated.asset.meta │ │ ├── GameEvent_Inventory_OnMouseEndHoverItem.asset │ │ ├── GameEvent_Inventory_OnMouseEndHoverItem.asset.meta │ │ ├── GameEvent_Inventory_OnMouseStartHoverItem.asset │ │ └── GameEvent_Inventory_OnMouseStartHoverItem.asset.meta │ ├── Npc.meta │ └── Npc │ │ ├── GameEvent_Npc_StartInteraction.asset │ │ ├── GameEvent_Npc_StartInteraction.asset.meta │ │ ├── Vendor.meta │ │ └── Vendor │ │ ├── GameEvent_Npc_Vendor_OnVendorScenarioStart.asset │ │ └── GameEvent_Npc_Vendor_OnVendorScenarioStart.asset.meta ├── Player.meta ├── Player │ ├── AnimationController_Player.controller │ ├── AnimationController_Player.controller.meta │ ├── idle.fbx │ ├── idle.fbx.meta │ ├── jump.fbx │ ├── jump.fbx.meta │ ├── left strafe walk.fbx │ ├── left strafe walk.fbx.meta │ ├── left strafe.fbx │ ├── left strafe.fbx.meta │ ├── left turn.fbx │ ├── left turn.fbx.meta │ ├── right strafe walk.fbx │ ├── right strafe walk.fbx.meta │ ├── right strafe.fbx │ ├── right strafe.fbx.meta │ ├── right turn.fbx │ ├── right turn.fbx.meta │ ├── running.fbx │ ├── running.fbx.meta │ ├── walking.fbx │ ├── walking.fbx.meta │ ├── xbot.fbx │ └── xbot.fbx.meta ├── Prefabs.meta ├── Prefabs │ ├── Button_Close.prefab │ ├── Button_Close.prefab.meta │ ├── Button_Occupation.prefab │ ├── Button_Occupation.prefab.meta │ ├── Button_VendorItem.prefab │ ├── Button_VendorItem.prefab.meta │ ├── HotbarUI.prefab │ ├── HotbarUI.prefab.meta │ ├── HoverInfoUI.prefab │ ├── HoverInfoUI.prefab.meta │ ├── InventoryUI.prefab │ ├── InventoryUI.prefab.meta │ ├── NpcUI.prefab │ ├── NpcUI.prefab.meta │ ├── Player.prefab │ ├── Player.prefab.meta │ ├── Slot_Hotbar.prefab │ ├── Slot_Hotbar.prefab.meta │ ├── Slot_Inventory.prefab │ ├── Slot_Inventory.prefab.meta │ ├── VendorUI.prefab │ └── VendorUI.prefab.meta ├── Resources.meta ├── Resources │ ├── Items.meta │ └── Items │ │ ├── Consumables.meta │ │ └── Consumables │ │ ├── Item_Consumable_HealthPotion.asset │ │ ├── Item_Consumable_HealthPotion.asset.meta │ │ ├── Item_Consumable_SpeedPotion.asset │ │ └── Item_Consumable_SpeedPotion.asset.meta ├── Scenes.meta ├── Scenes │ ├── Scene_Main.unity │ └── Scene_Main.unity.meta ├── Scripts.meta ├── Scripts │ ├── Combat.meta │ ├── Combat │ │ ├── DamageOnContact.cs │ │ ├── DamageOnContact.cs.meta │ │ ├── Fragile.cs │ │ ├── Fragile.cs.meta │ │ ├── HealOnContact.cs │ │ ├── HealOnContact.cs.meta │ │ ├── HealthSystem.cs │ │ ├── HealthSystem.cs.meta │ │ ├── IDamageable.cs │ │ ├── IDamageable.cs.meta │ │ ├── IHealable.cs │ │ └── IHealable.cs.meta │ ├── Events.meta │ ├── Events │ │ ├── CustomEvents.meta │ │ ├── CustomEvents │ │ │ ├── BaseGameEvent.cs │ │ │ ├── BaseGameEvent.cs.meta │ │ │ ├── BoolEvent.cs │ │ │ ├── BoolEvent.cs.meta │ │ │ ├── FloatEvent.cs │ │ │ ├── FloatEvent.cs.meta │ │ │ ├── IntEvent.cs │ │ │ ├── IntEvent.cs.meta │ │ │ ├── ItemContainerEvent.cs │ │ │ ├── ItemContainerEvent.cs.meta │ │ │ ├── ItemEvent.cs │ │ │ ├── ItemEvent.cs.meta │ │ │ ├── NpcEvent.cs │ │ │ ├── NpcEvent.cs.meta │ │ │ ├── VendorDataEvent.cs │ │ │ ├── VendorDataEvent.cs.meta │ │ │ ├── VoidEvent.cs │ │ │ └── VoidEvent.cs.meta │ │ ├── Listeners.meta │ │ ├── Listeners │ │ │ ├── BaseGameEventListener.cs │ │ │ ├── BaseGameEventListener.cs.meta │ │ │ ├── BoolListener.cs │ │ │ ├── BoolListener.cs.meta │ │ │ ├── FloatListener.cs │ │ │ ├── FloatListener.cs.meta │ │ │ ├── IGameEventListener.cs │ │ │ ├── IGameEventListener.cs.meta │ │ │ ├── IntListener.cs │ │ │ ├── IntListener.cs.meta │ │ │ ├── ItemContainerListener.cs │ │ │ ├── ItemContainerListener.cs.meta │ │ │ ├── ItemListener.cs │ │ │ ├── ItemListener.cs.meta │ │ │ ├── NpcListener.cs │ │ │ ├── NpcListener.cs.meta │ │ │ ├── VendorDataListener.cs │ │ │ ├── VendorDataListener.cs.meta │ │ │ ├── VoidListener.cs │ │ │ └── VoidListener.cs.meta │ │ ├── UnityEvents.meta │ │ ├── UnityEvents │ │ │ ├── UnityBoolEvent.cs │ │ │ ├── UnityBoolEvent.cs.meta │ │ │ ├── UnityFloatEvent.cs │ │ │ ├── UnityFloatEvent.cs.meta │ │ │ ├── UnityIntEvent.cs │ │ │ ├── UnityIntEvent.cs.meta │ │ │ ├── UnityItemContainerEvent.cs │ │ │ ├── UnityItemContainerEvent.cs.meta │ │ │ ├── UnityItemEvent.cs │ │ │ ├── UnityItemEvent.cs.meta │ │ │ ├── UnityNpcEvent.cs │ │ │ ├── UnityNpcEvent.cs.meta │ │ │ ├── UnityVendorDataEvent.cs │ │ │ ├── UnityVendorDataEvent.cs.meta │ │ │ ├── UnityVoidEvent.cs │ │ │ └── UnityVoidEvent.cs.meta │ │ ├── Void.cs │ │ └── Void.cs.meta │ ├── Interactables.meta │ ├── Interactables │ │ ├── IInteractable.cs │ │ ├── IInteractable.cs.meta │ │ ├── Interactor.cs │ │ └── Interactor.cs.meta │ ├── Items.meta │ ├── Items │ │ ├── Ammunition.cs │ │ ├── Ammunition.cs.meta │ │ ├── ConsumableItem.cs │ │ ├── ConsumableItem.cs.meta │ │ ├── Hotbars.meta │ │ ├── Hotbars │ │ │ ├── Hotbar.cs │ │ │ ├── Hotbar.cs.meta │ │ │ ├── HotbarItemDragHandler.cs │ │ │ ├── HotbarItemDragHandler.cs.meta │ │ │ ├── HotbarSlot.cs │ │ │ ├── HotbarSlot.cs.meta │ │ │ ├── IHotbarItem.cs │ │ │ └── IHotbarItem.cs.meta │ │ ├── HoverInfoPopup.cs │ │ ├── HoverInfoPopup.cs.meta │ │ ├── IItemContainer.cs │ │ ├── IItemContainer.cs.meta │ │ ├── Inventories.meta │ │ ├── Inventories │ │ │ ├── Inventory.cs │ │ │ ├── Inventory.cs.meta │ │ │ ├── InventoryItem.cs │ │ │ ├── InventoryItem.cs.meta │ │ │ ├── InventoryItemDragHandler.cs │ │ │ ├── InventoryItemDragHandler.cs.meta │ │ │ ├── InventorySlot.cs │ │ │ └── InventorySlot.cs.meta │ │ ├── Item.cs │ │ ├── Item.cs.meta │ │ ├── ItemDestroyer.cs │ │ ├── ItemDestroyer.cs.meta │ │ ├── ItemDragHandler.cs │ │ ├── ItemDragHandler.cs.meta │ │ ├── ItemPickup.cs │ │ ├── ItemPickup.cs.meta │ │ ├── ItemSlot.cs │ │ ├── ItemSlot.cs.meta │ │ ├── ItemSlotUI.cs │ │ ├── ItemSlotUI.cs.meta │ │ ├── Rarity.cs │ │ └── Rarity.cs.meta │ ├── Magic.meta │ ├── Magic │ │ ├── Element.cs │ │ ├── Element.cs.meta │ │ ├── Spell.cs │ │ └── Spell.cs.meta │ ├── Movement.meta │ ├── Movement │ │ ├── MovementController.cs │ │ └── MovementController.cs.meta │ ├── Npcs.meta │ ├── Npcs │ │ ├── Npc.cs │ │ ├── Npc.cs.meta │ │ ├── NpcUi.cs │ │ ├── NpcUi.cs.meta │ │ ├── Occupations.meta │ │ └── Occupations │ │ │ ├── IOccupation.cs │ │ │ ├── IOccupation.cs.meta │ │ │ ├── OccupationButton.cs │ │ │ ├── OccupationButton.cs.meta │ │ │ ├── Vendors.meta │ │ │ └── Vendors │ │ │ ├── Vendor.cs │ │ │ ├── Vendor.cs.meta │ │ │ ├── VendorData.cs │ │ │ ├── VendorData.cs.meta │ │ │ ├── VendorItemButton.cs │ │ │ ├── VendorItemButton.cs.meta │ │ │ ├── VendorSystem.cs │ │ │ └── VendorSystem.cs.meta │ ├── Utilities.meta │ └── Utilities │ │ ├── ToggleActiveWithKeyPress.cs │ │ └── ToggleActiveWithKeyPress.cs.meta ├── TextMesh Pro.meta └── TextMesh Pro │ ├── Documentation.meta │ ├── Documentation │ ├── TextMesh Pro User Guide 2016.pdf │ └── TextMesh Pro User Guide 2016.pdf.meta │ ├── Fonts.meta │ ├── Fonts │ ├── LiberationSans - OFL.txt │ ├── LiberationSans - OFL.txt.meta │ ├── LiberationSans.ttf │ └── LiberationSans.ttf.meta │ ├── Resources.meta │ ├── Resources │ ├── Fonts & Materials.meta │ ├── Fonts & Materials │ │ ├── LiberationSans SDF - Drop Shadow.mat │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ ├── LiberationSans SDF - Fallback.asset │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ ├── LiberationSans SDF - Outline.mat │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ ├── LiberationSans SDF.asset │ │ └── LiberationSans SDF.asset.meta │ ├── LineBreaking Following Characters.txt │ ├── LineBreaking Following Characters.txt.meta │ ├── LineBreaking Leading Characters.txt │ ├── LineBreaking Leading Characters.txt.meta │ ├── Shaders.meta │ ├── Shaders │ │ ├── TMP_Bitmap-Custom-Atlas.shader │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ │ ├── TMP_Bitmap-Mobile.shader │ │ ├── TMP_Bitmap-Mobile.shader.meta │ │ ├── TMP_Bitmap.shader │ │ ├── TMP_Bitmap.shader.meta │ │ ├── TMP_SDF Overlay.shader │ │ ├── TMP_SDF Overlay.shader.meta │ │ ├── TMP_SDF-Mobile Masking.shader │ │ ├── TMP_SDF-Mobile Masking.shader.meta │ │ ├── TMP_SDF-Mobile Overlay.shader │ │ ├── TMP_SDF-Mobile Overlay.shader.meta │ │ ├── TMP_SDF-Mobile.shader │ │ ├── TMP_SDF-Mobile.shader.meta │ │ ├── TMP_SDF-Surface-Mobile.shader │ │ ├── TMP_SDF-Surface-Mobile.shader.meta │ │ ├── TMP_SDF-Surface.shader │ │ ├── TMP_SDF-Surface.shader.meta │ │ ├── TMP_SDF.shader │ │ ├── TMP_SDF.shader.meta │ │ ├── TMP_Sprite.shader │ │ ├── TMP_Sprite.shader.meta │ │ ├── TMPro.cginc │ │ ├── TMPro.cginc.meta │ │ ├── TMPro_Properties.cginc │ │ ├── TMPro_Properties.cginc.meta │ │ ├── TMPro_Surface.cginc │ │ └── TMPro_Surface.cginc.meta │ ├── Sprite Assets.meta │ ├── Sprite Assets │ │ ├── EmojiOne.asset │ │ └── EmojiOne.asset.meta │ ├── Style Sheets.meta │ ├── Style Sheets │ │ ├── Default Style Sheet.asset │ │ └── Default Style Sheet.asset.meta │ ├── TMP Settings.asset │ └── TMP Settings.asset.meta │ ├── Sprites.meta │ └── Sprites │ ├── EmojiOne Attribution.txt │ ├── EmojiOne Attribution.txt.meta │ ├── EmojiOne.json │ ├── EmojiOne.json.meta │ ├── EmojiOne.png │ └── EmojiOne.png.meta ├── LICENSE ├── Logs └── Packages-Update.log ├── Packages └── manifest.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage 37 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": 3 | { 4 | "**/.DS_Store":true, 5 | "**/.git":true, 6 | "**/.gitignore":true, 7 | "**/.gitmodules":true, 8 | "**/*.booproj":true, 9 | "**/*.pidb":true, 10 | "**/*.suo":true, 11 | "**/*.user":true, 12 | "**/*.userprefs":true, 13 | "**/*.unityproj":true, 14 | "**/*.dll":true, 15 | "**/*.exe":true, 16 | "**/*.pdf":true, 17 | "**/*.mid":true, 18 | "**/*.midi":true, 19 | "**/*.wav":true, 20 | "**/*.gif":true, 21 | "**/*.ico":true, 22 | "**/*.jpg":true, 23 | "**/*.jpeg":true, 24 | "**/*.png":true, 25 | "**/*.psd":true, 26 | "**/*.tga":true, 27 | "**/*.tif":true, 28 | "**/*.tiff":true, 29 | "**/*.3ds":true, 30 | "**/*.3DS":true, 31 | "**/*.fbx":true, 32 | "**/*.FBX":true, 33 | "**/*.lxo":true, 34 | "**/*.LXO":true, 35 | "**/*.ma":true, 36 | "**/*.MA":true, 37 | "**/*.obj":true, 38 | "**/*.OBJ":true, 39 | "**/*.asset":true, 40 | "**/*.cubemap":true, 41 | "**/*.flare":true, 42 | "**/*.mat":true, 43 | "**/*.meta":true, 44 | "**/*.prefab":true, 45 | "**/*.unity":true, 46 | "build/":true, 47 | "Build/":true, 48 | "Library/":true, 49 | "library/":true, 50 | "obj/":true, 51 | "Obj/":true, 52 | "ProjectSettings/":true, 53 | "temp/":true, 54 | "Temp/":true 55 | } 56 | } -------------------------------------------------------------------------------- /Assets/GameData.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95617025ad6f4484f8b9cb2a88b85a95 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ffb83e798f9b6f44f853b310a61f26e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Air.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Air 14 | m_EditorClassIdentifier: 15 | name: Air 16 | colour: {r: 0.4625756, g: 0.98523164, b: 0.990566, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Air.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98e73c62d66e69c46a5315188d02da87 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Arcane.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Arcane 14 | m_EditorClassIdentifier: 15 | name: Arcane 16 | colour: {r: 0.80495554, g: 0.13932894, b: 0.9528302, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Arcane.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af89356433704614ead14c7969182fcb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Dark.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Dark 14 | m_EditorClassIdentifier: 15 | name: Dark 16 | colour: {r: 0.1981132, g: 0.1981132, b: 0.1981132, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Dark.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d71e84adaa2d1049a2f9194e305e2eb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Earth.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Earth 14 | m_EditorClassIdentifier: 15 | name: Earth 16 | colour: {r: 0.7075472, g: 0.32254377, b: 0.09678713, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Earth.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4230c44fa5f6e149966778053681bc3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Fire.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Fire 14 | m_EditorClassIdentifier: 15 | name: Fire 16 | colour: {r: 0.8207547, g: 0.2203757, b: 0.16647384, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Fire.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3e86214f61df214881da2411528c5a3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Light.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Light 14 | m_EditorClassIdentifier: 15 | name: Light 16 | colour: {r: 0.8968594, g: 0.9528302, b: 0.20225172, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Light.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc02cf1720f8fb145aaa765e0c674d4e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Water.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: b163f6f1e4db44142b65c4bd0d6ee2b4, type: 3} 13 | m_Name: Element_Water 14 | m_EditorClassIdentifier: 15 | name: Water 16 | colour: {r: 0.23740657, g: 0.35750598, b: 0.9150943, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Elements/Element_Water.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 024297f49a6bfea4bb57903f244d0b3b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73c1fe214236bf240a51b59ffa5f6944 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Common.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6d275505cc55ab24bad335abb327e635, type: 3} 13 | m_Name: Rarity_Common 14 | m_EditorClassIdentifier: 15 | name: Common 16 | colour: {r: 0.8018868, g: 0.8018868, b: 0.8018868, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Common.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd9a8eda009dbfb40984111ff5866cd8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Epic.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6d275505cc55ab24bad335abb327e635, type: 3} 13 | m_Name: Rarity_Epic 14 | m_EditorClassIdentifier: 15 | name: Epic 16 | colour: {r: 0.73848164, g: 0.10234957, b: 0.8679245, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Epic.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c02162df4aaf77147b42f0359f614592 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Legendary.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6d275505cc55ab24bad335abb327e635, type: 3} 13 | m_Name: Rarity_Legendary 14 | m_EditorClassIdentifier: 15 | name: Legendary 16 | colour: {r: 0.9056604, g: 0.6469301, b: 0.14097545, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Legendary.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1c30af3df3f89643bba121811563121 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Rare.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6d275505cc55ab24bad335abb327e635, type: 3} 13 | m_Name: Rarity_Rare 14 | m_EditorClassIdentifier: 15 | name: Rare 16 | colour: {r: 0.033018887, g: 0.46455607, b: 1, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Rare.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b671ad502b4b754184dc8291f37253b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Uncommon.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6d275505cc55ab24bad335abb327e635, type: 3} 13 | m_Name: Rarity_Uncommon 14 | m_EditorClassIdentifier: 15 | name: Uncommon 16 | colour: {r: 0.18614274, g: 0.8396226, b: 0.3236247, a: 1} 17 | -------------------------------------------------------------------------------- /Assets/GameData/Rarities/Rarity_Uncommon.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf6dcf8f9bce0e04e8f96e7db0a74aab 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6bde05d022501d42807ef1038c70bd6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c031a383d18c64941bd8d54fce8057ac 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnInventoryItemsUpdated.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d288cf77db84f7d4d92356095f337891, type: 3} 13 | m_Name: GameEvent_Inventory_OnInventoryItemsUpdated 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnInventoryItemsUpdated.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb5a201f7a491d84fba9a5d5731c602d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnMouseEndHoverItem.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d288cf77db84f7d4d92356095f337891, type: 3} 13 | m_Name: GameEvent_Inventory_OnMouseEndHoverItem 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnMouseEndHoverItem.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8e08c3a8e3c9ef4987322fb04861c1a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnMouseStartHoverItem.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 968c232fb414ad14c90dd11a926f3ea4, type: 3} 13 | m_Name: GameEvent_Inventory_OnMouseStartHoverItem 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/GameEvents/Inventory/GameEvent_Inventory_OnMouseStartHoverItem.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1741650416e3d5b41b25f41a1168cbc1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 621343480d2e5574aa1b29d310179e7b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc/GameEvent_Npc_StartInteraction.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 0ad2ee6f99df0b74c9a4d3acc547268a, type: 3} 13 | m_Name: GameEvent_Npc_StartInteraction 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc/GameEvent_Npc_StartInteraction.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19bec9f5b1f03174fa0963eda2df03d3 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc/Vendor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06e127d3095f40d45aed564dc59425a0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc/Vendor/GameEvent_Npc_Vendor_OnVendorScenarioStart.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 47378e8bb80338e4cb492e4401e157e8, type: 3} 13 | m_Name: GameEvent_Npc_Vendor_OnVendorScenarioStart 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/GameEvents/Npc/Vendor/GameEvent_Npc_Vendor_OnVendorScenarioStart.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a579bfe98b75ba9469366fea566c00bb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Player.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 816b6b9b16cfd41488f3ebf97580c222 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Player/AnimationController_Player.controller: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!206 &-6997194782743372361 4 | BlendTree: 5 | m_ObjectHideFlags: 1 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Blend Tree 10 | m_Childs: 11 | - serializedVersion: 2 12 | m_Motion: {fileID: -203655887218126122, guid: 9cedcf2a3b1a9ec43be8dbc08894c3b8, 13 | type: 3} 14 | m_Threshold: 0 15 | m_Position: {x: 0, y: 0} 16 | m_TimeScale: 1 17 | m_CycleOffset: 0 18 | m_DirectBlendParameter: Horizontal 19 | m_Mirror: 0 20 | - serializedVersion: 2 21 | m_Motion: {fileID: -203655887218126122, guid: 68cea7eab15ce034ba39fe81d9ddba62, 22 | type: 3} 23 | m_Threshold: 0.5 24 | m_Position: {x: 0, y: 0} 25 | m_TimeScale: 1 26 | m_CycleOffset: 0 27 | m_DirectBlendParameter: Horizontal 28 | m_Mirror: 0 29 | - serializedVersion: 2 30 | m_Motion: {fileID: -203655887218126122, guid: 30176c209edc69540acb4dded0c67630, 31 | type: 3} 32 | m_Threshold: 1 33 | m_Position: {x: -1, y: 0} 34 | m_TimeScale: 1 35 | m_CycleOffset: 0 36 | m_DirectBlendParameter: Horizontal 37 | m_Mirror: 0 38 | m_BlendParameter: SpeedPercentage 39 | m_BlendParameterY: Vertical 40 | m_MinThreshold: 0 41 | m_MaxThreshold: 1 42 | m_UseAutomaticThresholds: 1 43 | m_NormalizedBlendValues: 0 44 | m_BlendType: 0 45 | --- !u!1102 &-5941162619922734087 46 | AnimatorState: 47 | serializedVersion: 5 48 | m_ObjectHideFlags: 1 49 | m_CorrespondingSourceObject: {fileID: 0} 50 | m_PrefabInstance: {fileID: 0} 51 | m_PrefabAsset: {fileID: 0} 52 | m_Name: Locomotion 53 | m_Speed: 1 54 | m_CycleOffset: 0 55 | m_Transitions: [] 56 | m_StateMachineBehaviours: [] 57 | m_Position: {x: 50, y: 50, z: 0} 58 | m_IKOnFeet: 0 59 | m_WriteDefaultValues: 1 60 | m_Mirror: 0 61 | m_SpeedParameterActive: 0 62 | m_MirrorParameterActive: 0 63 | m_CycleOffsetParameterActive: 0 64 | m_TimeParameterActive: 0 65 | m_Motion: {fileID: -6997194782743372361} 66 | m_Tag: 67 | m_SpeedParameter: 68 | m_MirrorParameter: 69 | m_CycleOffsetParameter: 70 | m_TimeParameter: 71 | --- !u!206 &-5900904439782226327 72 | BlendTree: 73 | m_ObjectHideFlags: 1 74 | m_CorrespondingSourceObject: {fileID: 0} 75 | m_PrefabInstance: {fileID: 0} 76 | m_PrefabAsset: {fileID: 0} 77 | m_Name: BlendTree 78 | m_Childs: [] 79 | m_BlendParameter: Horizontal 80 | m_BlendParameterY: Blend 81 | m_MinThreshold: 0 82 | m_MaxThreshold: 1 83 | m_UseAutomaticThresholds: 1 84 | m_NormalizedBlendValues: 0 85 | m_BlendType: 0 86 | --- !u!1107 &-4956310442283901865 87 | AnimatorStateMachine: 88 | serializedVersion: 5 89 | m_ObjectHideFlags: 1 90 | m_CorrespondingSourceObject: {fileID: 0} 91 | m_PrefabInstance: {fileID: 0} 92 | m_PrefabAsset: {fileID: 0} 93 | m_Name: Base Layer 94 | m_ChildStates: 95 | - serializedVersion: 1 96 | m_State: {fileID: -5941162619922734087} 97 | m_Position: {x: 320, y: 120, z: 0} 98 | m_ChildStateMachines: [] 99 | m_AnyStateTransitions: [] 100 | m_EntryTransitions: [] 101 | m_StateMachineTransitions: {} 102 | m_StateMachineBehaviours: [] 103 | m_AnyStatePosition: {x: 50, y: 20, z: 0} 104 | m_EntryPosition: {x: 50, y: 120, z: 0} 105 | m_ExitPosition: {x: 800, y: 120, z: 0} 106 | m_ParentStateMachinePosition: {x: 800, y: 20, z: 0} 107 | m_DefaultState: {fileID: -5941162619922734087} 108 | --- !u!91 &9100000 109 | AnimatorController: 110 | m_ObjectHideFlags: 0 111 | m_CorrespondingSourceObject: {fileID: 0} 112 | m_PrefabInstance: {fileID: 0} 113 | m_PrefabAsset: {fileID: 0} 114 | m_Name: AnimationController_Player 115 | serializedVersion: 5 116 | m_AnimatorParameters: 117 | - m_Name: SpeedPercentage 118 | m_Type: 1 119 | m_DefaultFloat: 0 120 | m_DefaultInt: 0 121 | m_DefaultBool: 0 122 | m_Controller: {fileID: 0} 123 | m_AnimatorLayers: 124 | - serializedVersion: 5 125 | m_Name: Base Layer 126 | m_StateMachine: {fileID: -4956310442283901865} 127 | m_Mask: {fileID: 0} 128 | m_Motions: [] 129 | m_Behaviours: [] 130 | m_BlendingMode: 0 131 | m_SyncedLayerIndex: -1 132 | m_DefaultWeight: 0 133 | m_IKPass: 0 134 | m_SyncedLayerAffectsTiming: 0 135 | m_Controller: {fileID: 9100000} 136 | -------------------------------------------------------------------------------- /Assets/Player/AnimationController_Player.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3892712140cd0af47bc5dab8f73aa398 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 9100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Player/idle.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/idle.fbx -------------------------------------------------------------------------------- /Assets/Player/jump.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/jump.fbx -------------------------------------------------------------------------------- /Assets/Player/left strafe walk.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/left strafe walk.fbx -------------------------------------------------------------------------------- /Assets/Player/left strafe.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/left strafe.fbx -------------------------------------------------------------------------------- /Assets/Player/left turn.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/left turn.fbx -------------------------------------------------------------------------------- /Assets/Player/right strafe walk.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/right strafe walk.fbx -------------------------------------------------------------------------------- /Assets/Player/right strafe.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/right strafe.fbx -------------------------------------------------------------------------------- /Assets/Player/right turn.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/right turn.fbx -------------------------------------------------------------------------------- /Assets/Player/running.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/running.fbx -------------------------------------------------------------------------------- /Assets/Player/walking.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/walking.fbx -------------------------------------------------------------------------------- /Assets/Player/xbot.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/Player/xbot.fbx -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0eed9e887ebc941469523e9ad0178df0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Button_Close.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18b940e0457d9074d81205de67637dd3 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Button_Occupation.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca33c60eb8e9b5d45857c5652de0f504 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Button_VendorItem.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e39ad177f16405643b047cb3c6a006ea 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/HotbarUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfd6bf43a93f94948876a0df0c786559 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/HoverInfoUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b93b80c19da4be468d2498cc2b165d4 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/InventoryUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c2611bf95bfbea4782d11a15d050cc5 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/NpcUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2422dc6972a5f404c801419733590564 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Player.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9529a49883e8b4448af6e1852b01ed4c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Slot_Hotbar.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63c3cd72828e6af438e6fd32ebde413c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Slot_Inventory.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44e1b4762fc640145874c0171eb895fa 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/VendorUI.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cffbd93d8dbe1f4cb591721876bb79b 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdb0edf913eca7b41a44aeb9139d0126 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/Items.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cef603e4a4d067c4c8f20ef4fc66b52e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/Items/Consumables.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ce7be1974be4ba4f884dcfef75e2609 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/Items/Consumables/Item_Consumable_HealthPotion.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d1b41e7e9ccdd344eaae014e0deb8fd3, type: 3} 13 | m_Name: Item_Consumable_HealthPotion 14 | m_EditorClassIdentifier: 15 | name: Health Potion 16 | description: Healy boi 17 | icon: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} 18 | rarity: {fileID: 11400000, guid: bd9a8eda009dbfb40984111ff5866cd8, type: 2} 19 | sellPrice: 1 20 | maxStack: 5 21 | useText: Does something, maybe? 22 | -------------------------------------------------------------------------------- /Assets/Resources/Items/Consumables/Item_Consumable_HealthPotion.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d0a85e2e2f038644a6c4650258e35b0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Resources/Items/Consumables/Item_Consumable_SpeedPotion.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: d1b41e7e9ccdd344eaae014e0deb8fd3, type: 3} 13 | m_Name: Item_Consumable_SpeedPotion 14 | m_EditorClassIdentifier: 15 | name: Speed Potion 16 | description: Gotta go fast 17 | icon: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0} 18 | rarity: {fileID: 11400000, guid: 0b671ad502b4b754184dc8291f37253b, type: 2} 19 | sellPrice: 5 20 | maxStack: 3 21 | useText: Does something, maybe? 22 | -------------------------------------------------------------------------------- /Assets/Resources/Items/Consumables/Item_Consumable_SpeedPotion.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6eee8f0022acc5e4bb37024501bb3ab0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 773dee4d3aade50419187d3e6e6a8e28 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/Scene_Main.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c366731714dbd1e4db935bdbefb0262f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 791895d82b76c5846ad971e86776032a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/DamageOnContact.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Combat 4 | { 5 | public class DamageOnContact : MonoBehaviour 6 | { 7 | [SerializeField] private int amount = 10; 8 | 9 | private void OnTriggerEnter(Collider other) 10 | { 11 | var damageable = other.GetComponent(); 12 | 13 | if (damageable == null) { return; } 14 | 15 | damageable.DealDamage(amount); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/DamageOnContact.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d9e93446088d9e4baae33595e659144 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/Fragile.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Combat 4 | { 5 | public class Fragile : MonoBehaviour, IDamageable 6 | { 7 | public void DealDamage(int amount) => Destroy(gameObject); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/Fragile.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 140823c45d1d796439d2e5f050fe2e8c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/HealOnContact.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Combat 4 | { 5 | public class HealOnContact : MonoBehaviour 6 | { 7 | [SerializeField] private int amount = 10; 8 | 9 | private void OnTriggerEnter(Collider other) 10 | { 11 | var healable = other.GetComponent(); 12 | 13 | if (healable == null) { return; } 14 | 15 | healable.Heal(amount); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/HealOnContact.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a81c7b7426e9c7e4399fe48384267ca0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/HealthSystem.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Combat 4 | { 5 | public class HealthSystem : MonoBehaviour, IDamageable, IHealable 6 | { 7 | [SerializeField] private int maxHealth = 100; 8 | private int currentHealth = 0; 9 | 10 | private void Start() => currentHealth = maxHealth; 11 | 12 | public void DealDamage(int amount) 13 | { 14 | if (amount <= 0) { return; } 15 | 16 | currentHealth = Mathf.Max(0, currentHealth - amount); 17 | 18 | if (currentHealth == 0) 19 | { 20 | Destroy(gameObject); 21 | } 22 | } 23 | 24 | public void Heal(int amount) 25 | { 26 | if (amount <= 0) { return; } 27 | 28 | currentHealth = Mathf.Min(maxHealth, currentHealth + amount); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/HealthSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0bc4684b7fe03ea4381f67cbb4891cb8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/IDamageable.cs: -------------------------------------------------------------------------------- 1 | namespace DapperDino.Combat 2 | { 3 | public interface IDamageable 4 | { 5 | void DealDamage(int amount); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/IDamageable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2255b04e4824d41408c705279e4fae01 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/IHealable.cs: -------------------------------------------------------------------------------- 1 | namespace DapperDino.Combat 2 | { 3 | public interface IHealable 4 | { 5 | void Heal(int amount); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Combat/IHealable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5f64303d002f04097d979957736077 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8cd089795f7d2ab47bb8d0c3c766fb89 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a948b6c202ddc384eb3d45e3d5470028 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/BaseGameEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections.Generic; 3 | using DapperDino.Events.Listeners; 4 | 5 | namespace DapperDino.Events.CustomEvents 6 | { 7 | public abstract class BaseGameEvent : ScriptableObject 8 | { 9 | private readonly List> eventListeners = new List>(); 10 | 11 | public void Raise(T item) 12 | { 13 | for(int i = eventListeners.Count - 1; i >= 0; i--) 14 | eventListeners[i].OnEventRaised(item); 15 | } 16 | 17 | public void RegisterListener(IGameEventListener listener) 18 | { 19 | if(!eventListeners.Contains(listener)) 20 | eventListeners.Add(listener); 21 | } 22 | 23 | public void UnregisterListener(IGameEventListener listener) 24 | { 25 | if(eventListeners.Contains(listener)) 26 | eventListeners.Remove(listener); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/BaseGameEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa4cac64ae81dce40ac4d765f3e0f7f6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/BoolEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Events.CustomEvents 4 | { 5 | [CreateAssetMenu(fileName = "New Bool Event", menuName = "Game Events/Bool Event")] 6 | public class BoolEvent : BaseGameEvent { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/BoolEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e7b84c7c8235b54b9a9385b8973413e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/FloatEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Events.CustomEvents 4 | { 5 | [CreateAssetMenu(fileName = "New Float Event", menuName = "Game Events/Float Event")] 6 | public class FloatEvent : BaseGameEvent { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/FloatEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 570e9b4cb9eb7424c9bad64af004be34 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/IntEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Events.CustomEvents 4 | { 5 | [CreateAssetMenu(fileName = "New Int Event", menuName = "Game Events/Int Event")] 6 | public class IntEvent : BaseGameEvent { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/IntEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7833e3cf8793667478fe7dc164332c08 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/ItemContainerEvent.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Events.CustomEvents 5 | { 6 | [CreateAssetMenu(fileName = "New Item Container Event", menuName = "Game Events/Item Container Event")] 7 | public class ItemContainerEvent : BaseGameEvent { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/ItemContainerEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8761a7890682360409e1b0fa7a690b2e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/ItemEvent.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Events.CustomEvents 5 | { 6 | [CreateAssetMenu(fileName = "New Item Event", menuName = "Game Events/Item Event")] 7 | public class ItemEvent : BaseGameEvent { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/ItemEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 968c232fb414ad14c90dd11a926f3ea4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/NpcEvent.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Npcs; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Events.CustomEvents 5 | { 6 | [CreateAssetMenu(fileName = "New Npc Event", menuName = "Game Events/Npc Event")] 7 | public class NpcEvent : BaseGameEvent { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/NpcEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ad2ee6f99df0b74c9a4d3acc547268a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/VendorDataEvent.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Npcs.Occupations.Vendors; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Events.CustomEvents 5 | { 6 | [CreateAssetMenu(fileName = "New Vendor Data Event", menuName = "Game Events/Vendor Data Event")] 7 | public class VendorDataEvent : BaseGameEvent { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/VendorDataEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47378e8bb80338e4cb492e4401e157e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/VoidEvent.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Events.CustomEvents 4 | { 5 | [CreateAssetMenu(fileName = "New Void Event", menuName = "Game Events/Void Event")] 6 | public class VoidEvent : BaseGameEvent 7 | { 8 | public void Raise() => Raise(new Void()); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/CustomEvents/VoidEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d288cf77db84f7d4d92356095f337891 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 522287608c8f9fe4c860adab0ca14de7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/BaseGameEventListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using UnityEngine; 3 | using UnityEngine.Events; 4 | 5 | namespace DapperDino.Events.Listeners 6 | { 7 | public class BaseGameEventListener : MonoBehaviour, 8 | IGameEventListener where E : BaseGameEvent where UER : UnityEvent 9 | { 10 | [SerializeField] private E gameEvent = null; 11 | public E GameEvent { get { return gameEvent; } set { gameEvent = value; } } 12 | 13 | [SerializeField] private UER unityEventResponse = null; 14 | 15 | private void OnEnable() 16 | { 17 | if (gameEvent == null) { return; } 18 | 19 | GameEvent.RegisterListener(this); 20 | } 21 | 22 | private void OnDisable() 23 | { 24 | if (gameEvent == null) return; 25 | 26 | GameEvent.UnregisterListener(this); 27 | } 28 | 29 | public void OnEventRaised(T item) 30 | { 31 | if (unityEventResponse != null) 32 | { 33 | unityEventResponse.Invoke(item); 34 | } 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/BaseGameEventListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2513925591009247a1dd3404c954bcf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/BoolListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | 4 | namespace DapperDino.Events.Listeners 5 | { 6 | public class BoolListener : BaseGameEventListener { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/BoolListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d0cb8086ef771147acfe12fe8ad2267 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/FloatListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | 4 | namespace DapperDino.Events.Listeners 5 | { 6 | public class FloatListener : BaseGameEventListener { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/FloatListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85389c253e1b98040846cf788a2efbca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/IGameEventListener.cs: -------------------------------------------------------------------------------- 1 | namespace DapperDino.Events.Listeners 2 | { 3 | public interface IGameEventListener 4 | { 5 | void OnEventRaised(T item); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/IGameEventListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1917a83451e0af64eba9986695a9cb74 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/IntListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | 4 | namespace DapperDino.Events.Listeners 5 | { 6 | public class IntListener : BaseGameEventListener { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/IntListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbb2447fb3c04ac409bc99fbf3e9823a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/ItemContainerListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | using DapperDino.Items; 4 | 5 | namespace DapperDino.Events.Listeners 6 | { 7 | public class ItemContainerListener : BaseGameEventListener { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/ItemContainerListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27f81b0171dc4cb46b0db619e23f8978 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/ItemListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | using DapperDino.Items; 4 | 5 | namespace DapperDino.Events.Listeners 6 | { 7 | public class ItemListener : BaseGameEventListener { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/ItemListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4427791c06216984380c6c2132bfe6f2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/NpcListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | using DapperDino.Npcs; 4 | 5 | namespace DapperDino.Events.Listeners 6 | { 7 | public class NpcListener : BaseGameEventListener { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/NpcListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eebfb7ca4fa28a442a0c9b27e91d9d6e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/VendorDataListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | using DapperDino.Npcs.Occupations.Vendors; 4 | 5 | namespace DapperDino.Events.Listeners 6 | { 7 | public class VendorDataListener : BaseGameEventListener { } 8 | } 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/VendorDataListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 376b61bec27d52946b1276cbcae06dd8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/VoidListener.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Events.UnityEvents; 3 | 4 | namespace DapperDino.Events.Listeners 5 | { 6 | public class VoidListener : BaseGameEventListener { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Listeners/VoidListener.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a109e1f9f3a61143bdb4cbd59b4db13 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 703b2a0fb7ebabf4785c9c63cfa18d25 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityBoolEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.Events; 3 | 4 | namespace DapperDino.Events.UnityEvents 5 | { 6 | [Serializable] public class UnityBoolEvent : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityBoolEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53089b5bc663fa24b9f91e401947b59b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityFloatEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.Events; 3 | 4 | namespace DapperDino.Events.UnityEvents 5 | { 6 | [Serializable] public class UnityFloatEvent : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityFloatEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13377bc3d12e858499c8d6227040d24f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityIntEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.Events; 3 | 4 | namespace DapperDino.Events.UnityEvents 5 | { 6 | [Serializable] public class UnityIntEvent : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityIntEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebee097d48c211944a4c443d77faa489 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityItemContainerEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using DapperDino.Items; 3 | using UnityEngine.Events; 4 | 5 | namespace DapperDino.Events.UnityEvents 6 | { 7 | [Serializable] public class UnityItemContainerEvent : UnityEvent { } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityItemContainerEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc43672f6de7a934597722f4ab3f64c1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityItemEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using DapperDino.Items; 3 | using UnityEngine.Events; 4 | 5 | namespace DapperDino.Events.UnityEvents 6 | { 7 | [Serializable] public class UnityItemEvent : UnityEvent { } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityItemEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28da1c4b118570648b79da3442cbe150 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityNpcEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using DapperDino.Npcs; 3 | using UnityEngine.Events; 4 | 5 | namespace DapperDino.Events.UnityEvents 6 | { 7 | [Serializable] public class UnityNpcEvent : UnityEvent { } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityNpcEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b50bffd029c5aa42a09b48a3a5fd1fe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityVendorDataEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using DapperDino.Npcs.Occupations.Vendors; 3 | using UnityEngine.Events; 4 | 5 | namespace DapperDino.Events.UnityEvents 6 | { 7 | [Serializable] public class UnityVendorDataEvent : UnityEvent { } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityVendorDataEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 794e52eee9f19894486603d4be776e47 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityVoidEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine.Events; 3 | 4 | namespace DapperDino.Events.UnityEvents 5 | { 6 | [Serializable] public class UnityVoidEvent : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Events/UnityEvents/UnityVoidEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df6c84feb509623409c046ea53728fae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Void.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace DapperDino.Events 4 | { 5 | [Serializable] public struct Void { } 6 | } 7 | -------------------------------------------------------------------------------- /Assets/Scripts/Events/Void.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a67236bc229d5e40ae2cafa4c03dd85 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Interactables.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92d901ff484775e47a2957488744a2a9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Interactables/IInteractable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Interactables 4 | { 5 | public interface IInteractable 6 | { 7 | void Interact(GameObject other); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Interactables/IInteractable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df2b107752c4f074d9d5d1cc85656a4a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Interactables/Interactor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Interactables 4 | { 5 | public class Interactor : MonoBehaviour 6 | { 7 | private IInteractable currentInteractable = null; 8 | 9 | private void Update() 10 | { 11 | CheckForInteraction(); 12 | } 13 | 14 | private void CheckForInteraction() 15 | { 16 | if (currentInteractable == null) { return; } 17 | 18 | if (Input.GetKeyDown(KeyCode.E)) 19 | { 20 | currentInteractable.Interact(transform.root.gameObject); 21 | } 22 | } 23 | 24 | private void OnTriggerEnter(Collider other) 25 | { 26 | var interactable = other.GetComponent(); 27 | 28 | if (interactable == null) { return; } 29 | 30 | currentInteractable = interactable; 31 | } 32 | 33 | private void OnTriggerExit(Collider other) 34 | { 35 | var interactable = other.GetComponent(); 36 | 37 | if (interactable == null) { return; } 38 | 39 | if (interactable != currentInteractable) { return; } 40 | 41 | currentInteractable = null; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Assets/Scripts/Interactables/Interactor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcaa67069694f1b4b902c6ec29e6f988 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec993e06f56698c4eb6698692287964a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Ammunition.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Inventories; 2 | using System.Text; 3 | using UnityEngine; 4 | 5 | namespace DapperDino.Items 6 | { 7 | [CreateAssetMenu(fileName = "New Ammunition", menuName = "Items/Ammunition")] 8 | public class Ammunition : InventoryItem 9 | { 10 | [SerializeField] private GameObject ammunitionPrefab = null; 11 | 12 | public GameObject AmmunitionPrefab => ammunitionPrefab; 13 | 14 | public override string GetInfoDisplayText() 15 | { 16 | StringBuilder builder = new StringBuilder(); 17 | 18 | builder.Append(Rarity.Name).AppendLine(); 19 | builder.Append("Max Stack: ").Append(MaxStack).AppendLine(); 20 | builder.Append("Sell Price: ").Append(SellPrice).Append(" Gold"); 21 | 22 | return builder.ToString(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Ammunition.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0e878f8d2d31fdd48800c8ff4f04c488 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ConsumableItem.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Hotbars; 2 | using DapperDino.Items.Inventories; 3 | using System.Text; 4 | using UnityEngine; 5 | 6 | namespace DapperDino.Items 7 | { 8 | [CreateAssetMenu(fileName = "New Consumable Item", menuName = "Items/Consumable Item")] 9 | public class ConsumableItem : InventoryItem, IHotbarItem 10 | { 11 | [Header("Consumable Data")] 12 | [SerializeField] private string useText = "Does something, maybe?"; 13 | 14 | public override string GetInfoDisplayText() 15 | { 16 | StringBuilder builder = new StringBuilder(); 17 | 18 | builder.Append(Rarity.Name).AppendLine(); 19 | builder.Append("Use: ").Append(useText).Append("").AppendLine(); 20 | builder.Append("Max Stack: ").Append(MaxStack).AppendLine(); 21 | builder.Append("Sell Price: ").Append(SellPrice).Append(" Gold"); 22 | 23 | return builder.ToString(); 24 | } 25 | 26 | public void Use() 27 | { 28 | Debug.Log($"Drinking {Name}"); 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ConsumableItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1b41e7e9ccdd344eaae014e0deb8fd3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b0944f8c4b331846b6a5a45f0b21283 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/Hotbar.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Items.Hotbars 4 | { 5 | public class Hotbar : MonoBehaviour 6 | { 7 | [SerializeField] private HotbarSlot[] hotbarSlots = new HotbarSlot[10]; 8 | 9 | public void Add(Item itemToAdd) 10 | { 11 | foreach (HotbarSlot hotbarSlot in hotbarSlots) 12 | { 13 | if (hotbarSlot.AddItem(itemToAdd)) { return; } 14 | } 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/Hotbar.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd7267d16e6592e488fbd072d20b9e60 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/HotbarItemDragHandler.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine.EventSystems; 2 | 3 | namespace DapperDino.Items.Hotbars 4 | { 5 | public class HotbarItemDragHandler : ItemDragHandler 6 | { 7 | public override void OnPointerUp(PointerEventData eventData) 8 | { 9 | if (eventData.button == PointerEventData.InputButton.Left) 10 | { 11 | base.OnPointerUp(eventData); 12 | 13 | if (eventData.hovered.Count == 0) 14 | { 15 | (ItemSlotUI as HotbarSlot).SlotItem = null; 16 | } 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/HotbarItemDragHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7815775ff4088f240b0aaf149aeafa3d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/HotbarSlot.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Inventories; 2 | using TMPro; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | 6 | namespace DapperDino.Items.Hotbars 7 | { 8 | public class HotbarSlot : ItemSlotUI, IDropHandler 9 | { 10 | [SerializeField] private Inventory inventory = null; 11 | [SerializeField] private TextMeshProUGUI itemQuantityText = null; 12 | 13 | private Item slotItem = null; 14 | 15 | public override Item SlotItem 16 | { 17 | get { return slotItem; } 18 | set { slotItem = value; UpdateSlotUI(); } 19 | } 20 | 21 | public bool AddItem(Item itemToAdd) 22 | { 23 | if (SlotItem != null) { return false; } 24 | 25 | SlotItem = itemToAdd; 26 | 27 | return true; 28 | } 29 | 30 | public void UseSlot(int index) 31 | { 32 | if (index != SlotIndex) { return; } 33 | 34 | //Use item 35 | } 36 | 37 | public override void OnDrop(PointerEventData eventData) 38 | { 39 | ItemDragHandler itemDragHandler = eventData.pointerDrag.GetComponent(); 40 | if (itemDragHandler == null) { return; } 41 | 42 | InventorySlot inventorySlot = itemDragHandler.ItemSlotUI as InventorySlot; 43 | if (inventorySlot != null) 44 | { 45 | SlotItem = inventorySlot.ItemSlot.item; 46 | return; 47 | } 48 | 49 | HotbarSlot hotbarSlot = itemDragHandler.ItemSlotUI as HotbarSlot; 50 | if (hotbarSlot != null) 51 | { 52 | Item oldItem = SlotItem; 53 | SlotItem = hotbarSlot.SlotItem; 54 | hotbarSlot.SlotItem = oldItem; 55 | return; 56 | } 57 | } 58 | 59 | public override void UpdateSlotUI() 60 | { 61 | if (SlotItem == null) 62 | { 63 | EnableSlotUI(false); 64 | return; 65 | } 66 | 67 | itemIconImage.sprite = SlotItem.Icon; 68 | 69 | EnableSlotUI(true); 70 | 71 | SetItemQuantityUI(); 72 | } 73 | 74 | private void SetItemQuantityUI() 75 | { 76 | if (SlotItem is InventoryItem inventoryItem) 77 | { 78 | if (inventory.HasItem(inventoryItem)) 79 | { 80 | int quantityCount = inventory.GetTotalQuantity(inventoryItem); 81 | itemQuantityText.text = quantityCount > 1 ? quantityCount.ToString() : ""; 82 | } 83 | else 84 | { 85 | SlotItem = null; 86 | } 87 | } 88 | else 89 | { 90 | itemQuantityText.enabled = false; 91 | } 92 | } 93 | 94 | protected override void EnableSlotUI(bool enable) 95 | { 96 | base.EnableSlotUI(enable); 97 | itemQuantityText.enabled = enable; 98 | } 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/HotbarSlot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d3d4570fb170d94791670971c65f663 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/IHotbarItem.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Items.Hotbars 4 | { 5 | public interface IHotbarItem 6 | { 7 | string Name { get; } 8 | Sprite Icon { get; } 9 | void Use(); 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Hotbars/IHotbarItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b82ac4bf633ab5d4c8707867b25c9676 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/HoverInfoPopup.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items; 2 | using DapperDino.Items.Hotbars; 3 | using System.Text; 4 | using TMPro; 5 | using UnityEngine; 6 | using UnityEngine.UI; 7 | 8 | namespace Hel.Items 9 | { 10 | public class HoverInfoPopup : MonoBehaviour 11 | { 12 | [SerializeField] private GameObject popupCanvasObject = null; 13 | [SerializeField] private RectTransform popupObject = null; 14 | [SerializeField] private TextMeshProUGUI infoText = null; 15 | [SerializeField] private Vector3 offset = new Vector3(0f, 50f, 0f); 16 | [SerializeField] private float padding = 25f; 17 | 18 | private Canvas popupCanvas = null; 19 | 20 | private void Start() => popupCanvas = popupCanvasObject.GetComponent(); 21 | 22 | private void Update() => FollowCursor(); 23 | 24 | public void HideInfo() => popupCanvasObject.SetActive(false); 25 | 26 | private void FollowCursor() 27 | { 28 | if (!popupCanvasObject.activeSelf) { return; } 29 | 30 | Vector3 newPos = Input.mousePosition + offset; 31 | newPos.z = 0f; 32 | 33 | float rightEdgeToScreenEdgeDistance = Screen.width - (newPos.x + popupObject.rect.width * popupCanvas.scaleFactor / 2) - padding; 34 | if (rightEdgeToScreenEdgeDistance < 0) 35 | { 36 | newPos.x += rightEdgeToScreenEdgeDistance; 37 | } 38 | float leftEdgeToScreenEdgeDistance = 0 - (newPos.x - popupObject.rect.width * popupCanvas.scaleFactor / 2) + padding; 39 | if (leftEdgeToScreenEdgeDistance > 0) 40 | { 41 | newPos.x += leftEdgeToScreenEdgeDistance; 42 | } 43 | float topEdgeToScreenEdgeDistance = Screen.height - (newPos.y + popupObject.rect.height * popupCanvas.scaleFactor) - padding; 44 | if (topEdgeToScreenEdgeDistance < 0) 45 | { 46 | newPos.y += topEdgeToScreenEdgeDistance; 47 | } 48 | popupObject.transform.position = newPos; 49 | } 50 | 51 | public void DisplayInfo(Item infoItem) 52 | { 53 | StringBuilder builder = new StringBuilder(); 54 | 55 | builder.Append("").Append(infoItem.ColouredName).Append("\n"); 56 | builder.Append(infoItem.GetInfoDisplayText()); 57 | 58 | infoText.text = builder.ToString(); 59 | 60 | popupCanvasObject.SetActive(true); 61 | 62 | LayoutRebuilder.ForceRebuildLayoutImmediate(popupObject); 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/HoverInfoPopup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b80a150faf04b84497a2e9e7827b765 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/IItemContainer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using DapperDino.Items.Inventories; 3 | 4 | namespace DapperDino.Items 5 | { 6 | public interface IItemContainer 7 | { 8 | int Money { get; set; } 9 | ItemSlot GetSlotByIndex(int index); 10 | ItemSlot AddItem(ItemSlot itemSlot); 11 | List GetAllUniqueItems(); 12 | void RemoveItem(ItemSlot itemSlot); 13 | void RemoveAt(int slotIndex); 14 | void Swap(int indexOne, int indexTwo); 15 | bool HasItem(InventoryItem item); 16 | int GetTotalQuantity(InventoryItem item); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/IItemContainer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc89bb62cc00ba540b99c261c765de0f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe0ba38c31964644a898b1e6e0cc745e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/Inventory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97cd3674d0423e744a50f1700c79d638 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventoryItem.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Items.Inventories 4 | { 5 | public abstract class InventoryItem : Item 6 | { 7 | [Header("Item Data")] 8 | [SerializeField] private Rarity rarity = null; 9 | [SerializeField] [Min(0)] private int sellPrice = 1; 10 | [SerializeField] [Min(1)] private int maxStack = 1; 11 | 12 | public override string ColouredName 13 | { 14 | get 15 | { 16 | string hexColour = ColorUtility.ToHtmlStringRGB(rarity.Colour); 17 | return $"{Name}"; 18 | } 19 | } 20 | public int SellPrice => sellPrice; 21 | public int MaxStack => maxStack; 22 | public Rarity Rarity => rarity; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventoryItem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d0e251e06c53e7439d82981b2e2e118 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventoryItemDragHandler.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.EventSystems; 3 | 4 | namespace DapperDino.Items.Inventories 5 | { 6 | public class InventoryItemDragHandler : ItemDragHandler 7 | { 8 | [SerializeField] private ItemDestroyer itemDestroyer = null; 9 | 10 | public override void OnPointerUp(PointerEventData eventData) 11 | { 12 | if (eventData.button == PointerEventData.InputButton.Left) 13 | { 14 | base.OnPointerUp(eventData); 15 | 16 | if (eventData.hovered.Count == 0) 17 | { 18 | InventorySlot thisSlot = ItemSlotUI as InventorySlot; 19 | itemDestroyer.Activate(thisSlot.ItemSlot, thisSlot.SlotIndex); 20 | } 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventoryItemDragHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df07e2a35ef5e6b4da98e8775f455f82 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventorySlot.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Hotbars; 2 | using TMPro; 3 | using UnityEngine; 4 | using UnityEngine.EventSystems; 5 | 6 | namespace DapperDino.Items.Inventories 7 | { 8 | public class InventorySlot : ItemSlotUI, IDropHandler 9 | { 10 | [SerializeField] private Inventory inventory = null; 11 | [SerializeField] private TextMeshProUGUI itemQuantityText = null; 12 | 13 | public override Item SlotItem 14 | { 15 | get { return ItemSlot.item; } 16 | set { } 17 | } 18 | 19 | public ItemSlot ItemSlot => inventory.GetSlotByIndex(SlotIndex); 20 | 21 | public override void OnDrop(PointerEventData eventData) 22 | { 23 | ItemDragHandler itemDragHandler = eventData.pointerDrag.GetComponent(); 24 | 25 | if (itemDragHandler == null) { return; } 26 | 27 | if ((itemDragHandler.ItemSlotUI as InventorySlot) != null) 28 | { 29 | inventory.Swap(itemDragHandler.ItemSlotUI.SlotIndex, SlotIndex); 30 | } 31 | } 32 | 33 | public override void UpdateSlotUI() 34 | { 35 | if (ItemSlot.item == null) 36 | { 37 | EnableSlotUI(false); 38 | return; 39 | } 40 | 41 | EnableSlotUI(true); 42 | 43 | itemIconImage.sprite = ItemSlot.item.Icon; 44 | itemQuantityText.text = ItemSlot.quantity > 1 ? ItemSlot.quantity.ToString() : ""; 45 | } 46 | 47 | protected override void EnableSlotUI(bool enable) 48 | { 49 | base.EnableSlotUI(enable); 50 | itemQuantityText.enabled = enable; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Inventories/InventorySlot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dc33e6dee110b24abfe30cfeb476655 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Item.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Items 4 | { 5 | public abstract class Item : ScriptableObject 6 | { 7 | [Header("Basic Info")] 8 | [SerializeField] private new string name = "New Item Name"; 9 | [SerializeField] private string description = "New Item Description"; 10 | [SerializeField] private Sprite icon = null; 11 | 12 | public string Name => name; 13 | public string Description => description; 14 | public abstract string ColouredName { get; } 15 | public Sprite Icon => icon; 16 | 17 | public abstract string GetInfoDisplayText(); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Item.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ffd872a247cefc0469aba149f392cda1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemDestroyer.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Inventories; 2 | using TMPro; 3 | using UnityEngine; 4 | 5 | namespace DapperDino.Items 6 | { 7 | public class ItemDestroyer : MonoBehaviour 8 | { 9 | [SerializeField] private Inventory inventory = null; 10 | [SerializeField] private TextMeshProUGUI areYouSureText = null; 11 | 12 | private int slotIndex = 0; 13 | 14 | private void OnDisable() => slotIndex = -1; 15 | 16 | public void Activate(ItemSlot itemSlot, int slotIndex) 17 | { 18 | this.slotIndex = slotIndex; 19 | 20 | areYouSureText.text = $"Are you sure you wish to destroy {itemSlot.quantity}x {itemSlot.item.ColouredName}?"; 21 | 22 | gameObject.SetActive(true); 23 | } 24 | 25 | public void Destroy() 26 | { 27 | inventory.RemoveAt(slotIndex); 28 | 29 | gameObject.SetActive(false); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemDestroyer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cec3cbc1f6b2cd543ac747d8fa550497 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemDragHandler.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using UnityEngine; 3 | using UnityEngine.EventSystems; 4 | 5 | namespace DapperDino.Items 6 | { 7 | [RequireComponent(typeof(CanvasGroup))] 8 | public class ItemDragHandler : MonoBehaviour, IPointerDownHandler, IDragHandler, IPointerUpHandler, IPointerEnterHandler, IPointerExitHandler 9 | { 10 | [SerializeField] protected ItemSlotUI itemSlotUI = null; 11 | [SerializeField] protected ItemEvent onMouseStartHoverItem = null; 12 | [SerializeField] protected VoidEvent onMouseEndHoverItem = null; 13 | 14 | private CanvasGroup canvasGroup = null; 15 | private Transform originalParent = null; 16 | private bool isHovering = false; 17 | 18 | public ItemSlotUI ItemSlotUI => itemSlotUI; 19 | 20 | private void Start() => canvasGroup = GetComponent(); 21 | 22 | private void OnDisable() 23 | { 24 | if (isHovering) 25 | { 26 | onMouseEndHoverItem.Raise(); 27 | isHovering = false; 28 | } 29 | } 30 | 31 | public virtual void OnPointerDown(PointerEventData eventData) 32 | { 33 | if (eventData.button == PointerEventData.InputButton.Left) 34 | { 35 | onMouseEndHoverItem.Raise(); 36 | 37 | originalParent = transform.parent; 38 | 39 | transform.SetParent(transform.parent.parent); 40 | 41 | canvasGroup.blocksRaycasts = false; 42 | } 43 | } 44 | 45 | public virtual void OnDrag(PointerEventData eventData) 46 | { 47 | if (eventData.button == PointerEventData.InputButton.Left) 48 | { 49 | transform.position = Input.mousePosition; 50 | } 51 | } 52 | 53 | public virtual void OnPointerUp(PointerEventData eventData) 54 | { 55 | if (eventData.button == PointerEventData.InputButton.Left) 56 | { 57 | transform.SetParent(originalParent); 58 | transform.localPosition = Vector3.zero; 59 | canvasGroup.blocksRaycasts = true; 60 | } 61 | } 62 | 63 | public void OnPointerEnter(PointerEventData eventData) 64 | { 65 | onMouseStartHoverItem.Raise(ItemSlotUI.SlotItem); 66 | isHovering = true; 67 | } 68 | 69 | public void OnPointerExit(PointerEventData eventData) 70 | { 71 | onMouseEndHoverItem.Raise(); 72 | isHovering = false; 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemDragHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85f0002b99c774349805fcc250746297 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemPickup.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Interactables; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Items 5 | { 6 | public class ItemPickup : MonoBehaviour, IInteractable 7 | { 8 | [SerializeField] private ItemSlot itemSlot; 9 | 10 | public void Interact(GameObject other) 11 | { 12 | var itemContainer = other.GetComponent(); 13 | 14 | if (itemContainer == null) { return; } 15 | 16 | if (itemContainer.AddItem(itemSlot).quantity == 0) 17 | { 18 | Destroy(gameObject); 19 | } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemPickup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f8ba5dd095023c45af304312951da2d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemSlot.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Inventories; 2 | using System; 3 | 4 | namespace DapperDino.Items 5 | { 6 | [Serializable] 7 | public struct ItemSlot 8 | { 9 | public InventoryItem item; 10 | public int quantity; 11 | 12 | public ItemSlot(InventoryItem item, int quantity) 13 | { 14 | this.item = item; 15 | this.quantity = quantity; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemSlot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e82535fd2a8a4c545a653bb37414e254 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemSlotUI.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Hotbars; 2 | using UnityEngine; 3 | using UnityEngine.EventSystems; 4 | using UnityEngine.UI; 5 | 6 | namespace DapperDino.Items 7 | { 8 | public abstract class ItemSlotUI : MonoBehaviour, IDropHandler 9 | { 10 | [SerializeField] protected Image itemIconImage = null; 11 | 12 | public int SlotIndex { get; private set; } 13 | 14 | public abstract Item SlotItem { get; set; } 15 | 16 | private void OnEnable() => UpdateSlotUI(); 17 | 18 | protected virtual void Start() 19 | { 20 | SlotIndex = transform.GetSiblingIndex(); 21 | UpdateSlotUI(); 22 | } 23 | 24 | public abstract void OnDrop(PointerEventData eventData); 25 | 26 | public abstract void UpdateSlotUI(); 27 | 28 | protected virtual void EnableSlotUI(bool enable) => itemIconImage.enabled = enable; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/ItemSlotUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdc382566162b19498b11e75a77d60bd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Rarity.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Items 4 | { 5 | [CreateAssetMenu(fileName = "New Rarity", menuName = "Items/Rarity")] 6 | public class Rarity : ScriptableObject 7 | { 8 | [SerializeField] private new string name = "New Rarity Name"; 9 | [SerializeField] private Color colour = new Color(1f, 1f, 1f, 1f); 10 | 11 | public string Name => name; 12 | public Color Colour => colour; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Scripts/Items/Rarity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d275505cc55ab24bad335abb327e635 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Magic.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1a77c8a49817db4faef0e7fade3c66f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Magic/Element.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Magic 4 | { 5 | [CreateAssetMenu(fileName = "New Element", menuName = "Magic/Element")] 6 | public class Element : ScriptableObject 7 | { 8 | [SerializeField] private new string name = "New Element Name"; 9 | [SerializeField] private Color colour = new Color(1f, 1f, 1f, 1f); 10 | 11 | public string Name => name; 12 | public Color Colour => colour; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Scripts/Magic/Element.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b163f6f1e4db44142b65c4bd0d6ee2b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Magic/Spell.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using DapperDino.Items.Hotbars; 4 | using UnityEngine; 5 | 6 | namespace DapperDino.Magic 7 | { 8 | public class Spell : ScriptableObject, IHotbarItem 9 | { 10 | [Header("Basic Info")] 11 | [SerializeField] private new string name = "New Spell Name"; 12 | [SerializeField] private Sprite icon = null; 13 | [SerializeField] private Element element = null; 14 | 15 | public string Name => name; 16 | public Sprite Icon => Icon; 17 | public Element Element => element; 18 | 19 | public void Use() 20 | { 21 | Debug.Log($"Casting {Name}"); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Assets/Scripts/Magic/Spell.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c211b4a72a099f04d85fbf5861522b40 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Movement.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a085f9a79e77724d85755a7a1bf4920 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Movement/MovementController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace DapperDino.Movement 6 | { 7 | [RequireComponent(typeof(CharacterController))] 8 | [RequireComponent(typeof(Animator))] 9 | public class MovementController : MonoBehaviour 10 | { 11 | [SerializeField] private float movementSpeed = 3f; 12 | [SerializeField] private float speedSmoothTime = 0.1f; 13 | 14 | private CharacterController controller = null; 15 | private Animator animator = null; 16 | private Transform mainCameraTransform = null; 17 | 18 | private float velocityY = 0f; 19 | private float speedSmoothVelocity = 0f; 20 | private float currentSpeed = 0f; 21 | 22 | private static readonly int hashSpeedPercentage = Animator.StringToHash("SpeedPercentage"); 23 | 24 | private void Start() 25 | { 26 | controller = GetComponent(); 27 | animator = GetComponent(); 28 | mainCameraTransform = Camera.main.transform; 29 | } 30 | 31 | private void Update() 32 | { 33 | Move(); 34 | } 35 | 36 | private void Move() 37 | { 38 | Vector2 movementInput = new Vector2( 39 | Input.GetAxisRaw("Horizontal"), 40 | Input.GetAxisRaw("Vertical") 41 | ).normalized; 42 | 43 | Vector3 forward = mainCameraTransform.forward; 44 | Vector3 right = mainCameraTransform.right; 45 | 46 | forward.y = 0f; 47 | right.y = 0f; 48 | 49 | forward.Normalize(); 50 | right.Normalize(); 51 | 52 | Vector3 desiredMoveDirection = (forward * movementInput.y + right * movementInput.x).normalized; 53 | 54 | if (desiredMoveDirection != Vector3.zero) 55 | { 56 | transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(desiredMoveDirection), 0.1f); 57 | } 58 | 59 | float targetSpeed = movementSpeed * movementInput.magnitude; 60 | currentSpeed = Mathf.SmoothDamp(currentSpeed, targetSpeed, ref speedSmoothVelocity, speedSmoothTime); 61 | 62 | controller.Move(desiredMoveDirection * currentSpeed * Time.deltaTime); 63 | 64 | animator.SetFloat(hashSpeedPercentage, 0.5f * movementInput.magnitude, speedSmoothTime, Time.deltaTime); 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /Assets/Scripts/Movement/MovementController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c7eeb09b54ec9f428f78e7794f0930b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ca027c24ff147a43857dfdf9a8aaf50 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Npc.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Interactables; 3 | using DapperDino.Npcs.Occupations; 4 | using UnityEngine; 5 | 6 | namespace DapperDino.Npcs 7 | { 8 | public class Npc : MonoBehaviour, IInteractable 9 | { 10 | [SerializeField] private NpcEvent onStartInteraction = null; 11 | [SerializeField] private new string name = "New Npc Name"; 12 | [SerializeField] private string greetingText = "Hello adventurer!"; 13 | 14 | public string Name => name; 15 | public string GreetingText => greetingText; 16 | public GameObject OtherInteractor { get; private set; } = null; 17 | public IOccupation[] Occupations { get; private set; } = new IOccupation[0]; 18 | 19 | private void Start() => Occupations = GetComponents(); 20 | 21 | public void Interact(GameObject other) 22 | { 23 | OtherInteractor = other; 24 | 25 | onStartInteraction.Raise(this); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Npc.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8912627f0e5e38d4188fe4dbe2de0e28 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - onStartInteraction: {fileID: 11400000, guid: 19bec9f5b1f03174fa0963eda2df03d3, 8 | type: 2} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/NpcUi.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Npcs.Occupations; 2 | using TMPro; 3 | using UnityEngine; 4 | 5 | namespace DapperDino.Npcs 6 | { 7 | public class NpcUi : MonoBehaviour 8 | { 9 | [SerializeField] private TextMeshProUGUI npcNameText = null; 10 | [SerializeField] private TextMeshProUGUI npcGreetingText = null; 11 | [SerializeField] private Transform occupationButtonHolder = null; 12 | [SerializeField] private GameObject occupationButtonPrefab = null; 13 | 14 | public void SetNpc(Npc npc) 15 | { 16 | npcNameText.text = npc.Name; 17 | npcGreetingText.text = npc.GreetingText; 18 | 19 | foreach (Transform child in occupationButtonHolder) 20 | { 21 | Destroy(child.gameObject); 22 | } 23 | 24 | for (int i = 0; i < npc.Occupations.Length; i++) 25 | { 26 | GameObject buttonInstance = Instantiate(occupationButtonPrefab, occupationButtonHolder); 27 | buttonInstance.GetComponent().Initialise(npc.Occupations[i], npc.OtherInteractor); 28 | } 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/NpcUi.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96c245176f52b944e8055dec9770042b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17423521f1ff9224b89512e43417d3ad 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/IOccupation.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Npcs.Occupations 4 | { 5 | public interface IOccupation 6 | { 7 | string Name { get; } 8 | void Trigger(GameObject other); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/IOccupation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d892462bb7821f488ab0bfa66e36663 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/OccupationButton.cs: -------------------------------------------------------------------------------- 1 | using TMPro; 2 | using UnityEngine; 3 | 4 | namespace DapperDino.Npcs.Occupations 5 | { 6 | public class OccupationButton : MonoBehaviour 7 | { 8 | [SerializeField] private TextMeshProUGUI occupationNameText = null; 9 | 10 | private IOccupation occupation = null; 11 | private GameObject other = null; 12 | 13 | public void Initialise(IOccupation occupation, GameObject other) 14 | { 15 | this.occupation = occupation; 16 | this.other = other; 17 | } 18 | 19 | public void TriggerOccupation() => occupation.Trigger(other); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/OccupationButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6dca0b626f0a66347ae7d4d752efd86f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 673df276c060d0140851ef443aa31447 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/Vendor.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Events.CustomEvents; 2 | using DapperDino.Items; 3 | using UnityEngine; 4 | 5 | namespace DapperDino.Npcs.Occupations.Vendors 6 | { 7 | public class Vendor : MonoBehaviour, IOccupation 8 | { 9 | [SerializeField] private VendorDataEvent onStartVendorScenario = null; 10 | 11 | public string Name => "Let's Trade!"; 12 | 13 | private IItemContainer itemContainer = null; 14 | 15 | private void Start() => itemContainer = GetComponent(); 16 | 17 | public void Trigger(GameObject other) 18 | { 19 | var otherItemContainer = other.GetComponent(); 20 | 21 | if (otherItemContainer == null) { return; } 22 | 23 | VendorData vendorData = new VendorData(otherItemContainer, itemContainer); 24 | 25 | onStartVendorScenario.Raise(vendorData); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/Vendor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e89a6c15ac61006428f90a419599064a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: 7 | - onStartVendorScenario: {fileID: 11400000, guid: a579bfe98b75ba9469366fea566c00bb, 8 | type: 2} 9 | executionOrder: 0 10 | icon: {instanceID: 0} 11 | userData: 12 | assetBundleName: 13 | assetBundleVariant: 14 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorData.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items; 2 | 3 | namespace DapperDino.Npcs.Occupations.Vendors 4 | { 5 | public class VendorData 6 | { 7 | public VendorData( 8 | IItemContainer buyingItemContainer, 9 | IItemContainer sellingItemContainer) 10 | { 11 | itemContainers[0] = buyingItemContainer; 12 | itemContainers[1] = sellingItemContainer; 13 | } 14 | 15 | private IItemContainer[] itemContainers = new IItemContainer[2]; 16 | public bool IsFirstContainerBuying { get; set; } = true; 17 | 18 | public IItemContainer BuyingItemContainer => IsFirstContainerBuying ? itemContainers[0] : itemContainers[1]; 19 | public IItemContainer SellingItemContainer => IsFirstContainerBuying ? itemContainers[1] : itemContainers[0]; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b4d6c77be6799041a5feb610575b48a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorItemButton.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items.Inventories; 2 | using TMPro; 3 | using UnityEngine; 4 | using UnityEngine.UI; 5 | 6 | namespace DapperDino.Npcs.Occupations.Vendors 7 | { 8 | public class VendorItemButton : MonoBehaviour 9 | { 10 | [SerializeField] private TextMeshProUGUI itemNameText = null; 11 | [SerializeField] private Image itemIconImage = null; 12 | 13 | private VendorSystem vendorSystem = null; 14 | private InventoryItem item = null; 15 | 16 | public void Initialise(VendorSystem vendorSystem, InventoryItem item, int quantity) 17 | { 18 | this.vendorSystem = vendorSystem; 19 | this.item = item; 20 | 21 | itemNameText.text = $"{item.Name} ({quantity})"; 22 | itemIconImage.sprite = item.Icon; 23 | } 24 | 25 | public void SelectItem() 26 | { 27 | vendorSystem.SetItem(item); 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorItemButton.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a05c172e7ae249499ef74087fd3a518 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorSystem.cs: -------------------------------------------------------------------------------- 1 | using DapperDino.Items; 2 | using DapperDino.Items.Inventories; 3 | using TMPro; 4 | using UnityEngine; 5 | using UnityEngine.UI; 6 | 7 | namespace DapperDino.Npcs.Occupations.Vendors 8 | { 9 | public class VendorSystem : MonoBehaviour 10 | { 11 | [SerializeField] private GameObject buttonPrefab = null; 12 | [SerializeField] private Transform buttonHolderTransform = null; 13 | [SerializeField] private GameObject selectedItemDataHolder = null; 14 | 15 | [Header("Data Display")] 16 | [SerializeField] private TextMeshProUGUI itemNameText = null; 17 | [SerializeField] private TextMeshProUGUI itemDescriptionText = null; 18 | [SerializeField] private TextMeshProUGUI itemDataText = null; 19 | 20 | [Header("Quantity Display")] 21 | [SerializeField] private TextMeshProUGUI quantityText = null; 22 | [SerializeField] private Slider quantitySlider = null; 23 | 24 | private VendorData scenarioData = null; 25 | private InventoryItem currentItem = null; 26 | 27 | public void StartScenario(VendorData scenarioData) 28 | { 29 | this.scenarioData = scenarioData; 30 | 31 | SetCurrentItemContainer(true); 32 | 33 | SetItem(scenarioData.SellingItemContainer.GetSlotByIndex(0).item); 34 | } 35 | 36 | public void SetCurrentItemContainer(bool isFirst) 37 | { 38 | ClearItemButtons(); 39 | 40 | scenarioData.IsFirstContainerBuying = isFirst; 41 | 42 | var items = scenarioData.SellingItemContainer.GetAllUniqueItems(); 43 | 44 | for (int i = 0; i < items.Count; i++) 45 | { 46 | GameObject buttonInstance = Instantiate(buttonPrefab, buttonHolderTransform); 47 | buttonInstance.GetComponent().Initialise( 48 | this, 49 | items[i], 50 | scenarioData.SellingItemContainer.GetTotalQuantity(items[i])); 51 | } 52 | 53 | selectedItemDataHolder.SetActive(false); 54 | } 55 | 56 | public void SetItem(InventoryItem item) 57 | { 58 | currentItem = item; 59 | 60 | if (item == null) 61 | { 62 | itemNameText.text = string.Empty; 63 | itemDescriptionText.text = string.Empty; 64 | itemDataText.text = string.Empty; 65 | return; 66 | } 67 | 68 | itemNameText.text = item.Name; 69 | itemDescriptionText.text = item.Description; 70 | itemDataText.text = item.GetInfoDisplayText(); 71 | 72 | int totalQuantity = scenarioData.SellingItemContainer.GetTotalQuantity(item); 73 | quantityText.text = $"0/{totalQuantity}"; 74 | quantitySlider.maxValue = totalQuantity; 75 | quantitySlider.value = 0; 76 | 77 | selectedItemDataHolder.SetActive(true); 78 | } 79 | 80 | public void UpdateSliderText(float quantity) 81 | { 82 | int totalQuantity = scenarioData.SellingItemContainer.GetTotalQuantity(currentItem); 83 | quantityText.text = $"{quantity}/{totalQuantity}"; 84 | } 85 | 86 | public void ConfirmButton() 87 | { 88 | int price = currentItem.SellPrice * (int)quantitySlider.value; 89 | 90 | if (scenarioData.BuyingItemContainer.Money < price) { return; } 91 | 92 | scenarioData.BuyingItemContainer.Money -= price; 93 | scenarioData.SellingItemContainer.Money += price; 94 | 95 | var itemSlotSawp = new ItemSlot(currentItem, (int)quantitySlider.value); 96 | 97 | bool soldAll = (int)quantitySlider.value == scenarioData.SellingItemContainer.GetTotalQuantity(currentItem); 98 | 99 | if (soldAll) { selectedItemDataHolder.SetActive(false); } 100 | 101 | scenarioData.BuyingItemContainer.AddItem(itemSlotSawp); 102 | scenarioData.SellingItemContainer.RemoveItem(itemSlotSawp); 103 | 104 | SetCurrentItemContainer(scenarioData.IsFirstContainerBuying); 105 | 106 | if (!soldAll) { SetItem(currentItem); } 107 | } 108 | 109 | private void ClearItemButtons() 110 | { 111 | foreach (Transform child in buttonHolderTransform) 112 | { 113 | Destroy(child.gameObject); 114 | } 115 | } 116 | } 117 | } 118 | 119 | -------------------------------------------------------------------------------- /Assets/Scripts/Npcs/Occupations/Vendors/VendorSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ea288edd45821c4d9756825795ada51 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Utilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dba316bc8cbb7ff468d3cba709784f4a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Utilities/ToggleActiveWithKeyPress.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace DapperDino.Utilities 4 | { 5 | public class ToggleActiveWithKeyPress : MonoBehaviour 6 | { 7 | [SerializeField] private KeyCode keyCode = KeyCode.None; 8 | [SerializeField] private GameObject objectToToggle = null; 9 | 10 | private void Update() 11 | { 12 | if (Input.GetKeyDown(keyCode)) 13 | { 14 | objectToToggle.SetActive(!objectToToggle.activeSelf); 15 | } 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/Utilities/ToggleActiveWithKeyPress.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4569bdfa23230844ba5a2dad6d41dea3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt: -------------------------------------------------------------------------------- 1 | Digitized data copyright (c) 2010 Google Corporation 2 | with Reserved Font Arimo, Tinos and Cousine. 3 | Copyright (c) 2012 Red Hat, Inc. 4 | with Reserved Font Name Liberation. 5 | 6 | This Font Software is licensed under the SIL Open Font License, Version 1.1. 7 | This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL 8 | 9 | ----------------------------------------------------------- 10 | SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 11 | ----------------------------------------------------------- 12 | 13 | PREAMBLE 14 | The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. 15 | 16 | The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. 17 | 18 | DEFINITIONS 19 | "Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. 20 | 21 | "Reserved Font Name" refers to any names specified as such after the copyright statement(s). 22 | 23 | "Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). 24 | 25 | "Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. 26 | 27 | "Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. 28 | 29 | PERMISSION & CONDITIONS 30 | Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: 31 | 32 | 1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. 33 | 34 | 2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. 35 | 36 | 3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. 37 | 38 | 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. 39 | 40 | 5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. 41 | 42 | TERMINATION 43 | This license becomes null and void if any of the above conditions are not met. 44 | 45 | DISCLAIMER 46 | THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Drop Shadow 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON UNDERLAY_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _DiffusePower: 1 55 | - _FaceDilate: 0.1 56 | - _FaceUVSpeedX: 0 57 | - _FaceUVSpeedY: 0 58 | - _GlowInner: 0.05 59 | - _GlowOffset: 0 60 | - _GlowOuter: 0.05 61 | - _GlowPower: 0.75 62 | - _GradientScale: 10 63 | - _LightAngle: 3.1416 64 | - _MaskSoftnessX: 0 65 | - _MaskSoftnessY: 0 66 | - _OutlineSoftness: 0 67 | - _OutlineUVSpeedX: 0 68 | - _OutlineUVSpeedY: 0 69 | - _OutlineWidth: 0.1 70 | - _PerspectiveFilter: 0.875 71 | - _Reflectivity: 10 72 | - _ScaleRatioA: 0.9 73 | - _ScaleRatioB: 0.73125 74 | - _ScaleRatioC: 0.64125 75 | - _ScaleX: 1 76 | - _ScaleY: 1 77 | - _ShaderFlags: 0 78 | - _Sharpness: 0 79 | - _SpecularPower: 2 80 | - _Stencil: 0 81 | - _StencilComp: 8 82 | - _StencilOp: 0 83 | - _StencilReadMask: 255 84 | - _StencilWriteMask: 255 85 | - _TextureHeight: 1024 86 | - _TextureWidth: 1024 87 | - _UnderlayDilate: 0 88 | - _UnderlayOffsetX: 0.5 89 | - _UnderlayOffsetY: -0.5 90 | - _UnderlaySoftness: 0.05 91 | - _VertexOffsetX: 0 92 | - _VertexOffsetY: 0 93 | - _WeightBold: 0.75 94 | - _WeightNormal: 0 95 | m_Colors: 96 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 97 | - _Color: {r: 1, g: 1, b: 1, a: 1} 98 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 99 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 100 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 101 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 102 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 104 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 105 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 106 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 107 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_CorrespondingSourceObject: {fileID: 0} 8 | m_PrefabInstance: {fileID: 0} 9 | m_PrefabAsset: {fileID: 0} 10 | m_Name: LiberationSans SDF - Outline 11 | m_Shader: {fileID: 4800000, guid: fe393ace9b354375a9cb14cdbbc28be4, type: 3} 12 | m_ShaderKeywords: OUTLINE_ON 13 | m_LightmapFlags: 5 14 | m_EnableInstancingVariants: 0 15 | m_DoubleSidedGI: 0 16 | m_CustomRenderQueue: -1 17 | stringTagMap: {} 18 | disabledShaderPasses: [] 19 | m_SavedProperties: 20 | serializedVersion: 3 21 | m_TexEnvs: 22 | - _BumpMap: 23 | m_Texture: {fileID: 0} 24 | m_Scale: {x: 1, y: 1} 25 | m_Offset: {x: 0, y: 0} 26 | - _Cube: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - _FaceTex: 31 | m_Texture: {fileID: 0} 32 | m_Scale: {x: 1, y: 1} 33 | m_Offset: {x: 0, y: 0} 34 | - _MainTex: 35 | m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, 36 | type: 2} 37 | m_Scale: {x: 1, y: 1} 38 | m_Offset: {x: 0, y: 0} 39 | - _OutlineTex: 40 | m_Texture: {fileID: 0} 41 | m_Scale: {x: 1, y: 1} 42 | m_Offset: {x: 0, y: 0} 43 | m_Floats: 44 | - _Ambient: 0.5 45 | - _Bevel: 0.5 46 | - _BevelClamp: 0 47 | - _BevelOffset: 0 48 | - _BevelRoundness: 0 49 | - _BevelWidth: 0 50 | - _BumpFace: 0 51 | - _BumpOutline: 0 52 | - _ColorMask: 15 53 | - _Diffuse: 0.5 54 | - _FaceDilate: 0.1 55 | - _FaceUVSpeedX: 0 56 | - _FaceUVSpeedY: 0 57 | - _GlowInner: 0.05 58 | - _GlowOffset: 0 59 | - _GlowOuter: 0.05 60 | - _GlowPower: 0.75 61 | - _GradientScale: 10 62 | - _LightAngle: 3.1416 63 | - _MaskSoftnessX: 0 64 | - _MaskSoftnessY: 0 65 | - _OutlineSoftness: 0 66 | - _OutlineUVSpeedX: 0 67 | - _OutlineUVSpeedY: 0 68 | - _OutlineWidth: 0.1 69 | - _PerspectiveFilter: 0.875 70 | - _Reflectivity: 10 71 | - _ScaleRatioA: 0.9 72 | - _ScaleRatioB: 0.73125 73 | - _ScaleRatioC: 0.64125 74 | - _ScaleX: 1 75 | - _ScaleY: 1 76 | - _ShaderFlags: 0 77 | - _Sharpness: 0 78 | - _SpecularPower: 2 79 | - _Stencil: 0 80 | - _StencilComp: 8 81 | - _StencilOp: 0 82 | - _StencilReadMask: 255 83 | - _StencilWriteMask: 255 84 | - _TextureHeight: 1024 85 | - _TextureWidth: 1024 86 | - _UnderlayDilate: 0 87 | - _UnderlayOffsetX: 0 88 | - _UnderlayOffsetY: 0 89 | - _UnderlaySoftness: 0 90 | - _VertexOffsetX: 0 91 | - _VertexOffsetY: 0 92 | - _WeightBold: 0.75 93 | - _WeightNormal: 0 94 | m_Colors: 95 | - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} 96 | - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} 97 | - _FaceColor: {r: 1, g: 1, b: 1, a: 1} 98 | - _GlowColor: {r: 0, g: 1, b: 0, a: 0.5} 99 | - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} 100 | - _OutlineColor: {r: 0, g: 0, b: 0, a: 1} 101 | - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} 102 | - _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1} 103 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1} 104 | - _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5} 105 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇〉》」$⦆¥₩ # -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f836c9cb9345dba2e72c4a1f2d0695 3 | folderAsset: yes 4 | timeCreated: 1436068007 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap Custom Atlas" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | _FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | _Padding ("Padding", float) = 0 15 | 16 | _StencilComp("Stencil Comparison", Float) = 8 17 | _Stencil("Stencil ID", Float) = 0 18 | _StencilOp("Stencil Operation", Float) = 0 19 | _StencilWriteMask("Stencil Write Mask", Float) = 255 20 | _StencilReadMask("Stencil Read Mask", Float) = 255 21 | 22 | _ColorMask("Color Mask", Float) = 15 23 | } 24 | 25 | SubShader{ 26 | 27 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 28 | 29 | Stencil 30 | { 31 | Ref[_Stencil] 32 | Comp[_StencilComp] 33 | Pass[_StencilOp] 34 | ReadMask[_StencilReadMask] 35 | WriteMask[_StencilWriteMask] 36 | } 37 | 38 | 39 | Lighting Off 40 | Cull [_CullMode] 41 | ZTest [unity_GUIZTestMode] 42 | ZWrite Off 43 | Fog { Mode Off } 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask[_ColorMask] 46 | 47 | Pass { 48 | CGPROGRAM 49 | #pragma vertex vert 50 | #pragma fragment frag 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : SV_POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float2 texcoord1 : TEXCOORD1; 70 | float4 mask : TEXCOORD2; 71 | }; 72 | 73 | uniform sampler2D _MainTex; 74 | uniform sampler2D _FaceTex; 75 | uniform float4 _FaceTex_ST; 76 | uniform fixed4 _FaceColor; 77 | 78 | uniform float _VertexOffsetX; 79 | uniform float _VertexOffsetY; 80 | uniform float4 _ClipRect; 81 | uniform float _MaskSoftnessX; 82 | uniform float _MaskSoftnessY; 83 | 84 | float2 UnpackUV(float uv) 85 | { 86 | float2 output; 87 | output.x = floor(uv / 4096); 88 | output.y = uv - 4096 * output.x; 89 | 90 | return output * 0.001953125; 91 | } 92 | 93 | v2f vert (appdata_t v) 94 | { 95 | float4 vert = v.vertex; 96 | vert.x += _VertexOffsetX; 97 | vert.y += _VertexOffsetY; 98 | 99 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 100 | 101 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 102 | 103 | fixed4 faceColor = v.color; 104 | faceColor *= _FaceColor; 105 | 106 | v2f OUT; 107 | OUT.vertex = vPosition; 108 | OUT.color = faceColor; 109 | OUT.texcoord0 = v.texcoord0; 110 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 111 | float2 pixelSize = vPosition.w; 112 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 113 | 114 | // Clamp _ClipRect to 16bit. 115 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 116 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 117 | 118 | return OUT; 119 | } 120 | 121 | fixed4 frag (v2f IN) : SV_Target 122 | { 123 | fixed4 color = tex2D(_MainTex, IN.texcoord0) * tex2D(_FaceTex, IN.texcoord1) * IN.color; 124 | 125 | // Alternative implementation to UnityGet2DClipping with support for softness. 126 | #if UNITY_UI_CLIP_RECT 127 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 128 | color *= m.x * m.y; 129 | #endif 130 | 131 | #if UNITY_UI_ALPHACLIP 132 | clip(color.a - 0.001); 133 | #endif 134 | 135 | return color; 136 | } 137 | ENDCG 138 | } 139 | } 140 | 141 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 142 | } 143 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Mobile/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _Color ("Text Color", Color) = (1,1,1,1) 6 | _DiffusePower ("Diffuse Power", Range(1.0,4.0)) = 1.0 7 | 8 | _VertexOffsetX("Vertex OffsetX", float) = 0 9 | _VertexOffsetY("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _ColorMask("Color Mask", Float) = 15 22 | } 23 | 24 | SubShader { 25 | 26 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 27 | 28 | Stencil 29 | { 30 | Ref[_Stencil] 31 | Comp[_StencilComp] 32 | Pass[_StencilOp] 33 | ReadMask[_StencilReadMask] 34 | WriteMask[_StencilWriteMask] 35 | } 36 | 37 | 38 | Lighting Off 39 | Cull Off 40 | ZTest [unity_GUIZTestMode] 41 | ZWrite Off 42 | Fog { Mode Off } 43 | Blend SrcAlpha OneMinusSrcAlpha 44 | ColorMask[_ColorMask] 45 | 46 | Pass { 47 | CGPROGRAM 48 | #pragma vertex vert 49 | #pragma fragment frag 50 | #pragma fragmentoption ARB_precision_hint_fastest 51 | 52 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 53 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 54 | 55 | 56 | #include "UnityCG.cginc" 57 | 58 | struct appdata_t { 59 | float4 vertex : POSITION; 60 | fixed4 color : COLOR; 61 | float2 texcoord0 : TEXCOORD0; 62 | float2 texcoord1 : TEXCOORD1; 63 | }; 64 | 65 | struct v2f { 66 | float4 vertex : POSITION; 67 | fixed4 color : COLOR; 68 | float2 texcoord0 : TEXCOORD0; 69 | float4 mask : TEXCOORD2; 70 | }; 71 | 72 | sampler2D _MainTex; 73 | fixed4 _Color; 74 | float _DiffusePower; 75 | 76 | uniform float _VertexOffsetX; 77 | uniform float _VertexOffsetY; 78 | uniform float4 _ClipRect; 79 | uniform float _MaskSoftnessX; 80 | uniform float _MaskSoftnessY; 81 | 82 | v2f vert (appdata_t v) 83 | { 84 | v2f OUT; 85 | float4 vert = v.vertex; 86 | vert.x += _VertexOffsetX; 87 | vert.y += _VertexOffsetY; 88 | 89 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 90 | 91 | OUT.vertex = UnityPixelSnap(UnityObjectToClipPos(vert)); 92 | OUT.color = v.color; 93 | OUT.color *= _Color; 94 | OUT.color.rgb *= _DiffusePower; 95 | OUT.texcoord0 = v.texcoord0; 96 | 97 | float2 pixelSize = OUT.vertex.w; 98 | //pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 99 | 100 | // Clamp _ClipRect to 16bit. 101 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 102 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 103 | 104 | return OUT; 105 | } 106 | 107 | fixed4 frag (v2f IN) : COLOR 108 | { 109 | fixed4 color = fixed4(IN.color.rgb, IN.color.a * tex2D(_MainTex, IN.texcoord0).a); 110 | 111 | // Alternative implementation to UnityGet2DClipping with support for softness. 112 | #if UNITY_UI_CLIP_RECT 113 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 114 | color *= m.x * m.y; 115 | #endif 116 | 117 | #if UNITY_UI_ALPHACLIP 118 | clip(color.a - 0.001); 119 | #endif 120 | 121 | return color; 122 | } 123 | ENDCG 124 | } 125 | } 126 | 127 | SubShader { 128 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 129 | Lighting Off Cull Off ZTest Always ZWrite Off Fog { Mode Off } 130 | Blend SrcAlpha OneMinusSrcAlpha 131 | BindChannels { 132 | Bind "Color", color 133 | Bind "Vertex", vertex 134 | Bind "TexCoord", texcoord0 135 | } 136 | Pass { 137 | SetTexture [_MainTex] { 138 | constantColor [_Color] combine constant * primary, constant * texture 139 | } 140 | } 141 | } 142 | 143 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 144 | } 145 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Bitmap" { 2 | 3 | Properties { 4 | _MainTex ("Font Atlas", 2D) = "white" {} 5 | _FaceTex ("Font Texture", 2D) = "white" {} 6 | _FaceColor ("Text Color", Color) = (1,1,1,1) 7 | 8 | _VertexOffsetX ("Vertex OffsetX", float) = 0 9 | _VertexOffsetY ("Vertex OffsetY", float) = 0 10 | _MaskSoftnessX ("Mask SoftnessX", float) = 0 11 | _MaskSoftnessY ("Mask SoftnessY", float) = 0 12 | 13 | _ClipRect("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 14 | 15 | _StencilComp("Stencil Comparison", Float) = 8 16 | _Stencil("Stencil ID", Float) = 0 17 | _StencilOp("Stencil Operation", Float) = 0 18 | _StencilWriteMask("Stencil Write Mask", Float) = 255 19 | _StencilReadMask("Stencil Read Mask", Float) = 255 20 | 21 | _ColorMask("Color Mask", Float) = 15 22 | } 23 | 24 | SubShader{ 25 | 26 | Tags { "Queue" = "Transparent" "IgnoreProjector" = "True" "RenderType" = "Transparent" } 27 | 28 | Stencil 29 | { 30 | Ref[_Stencil] 31 | Comp[_StencilComp] 32 | Pass[_StencilOp] 33 | ReadMask[_StencilReadMask] 34 | WriteMask[_StencilWriteMask] 35 | } 36 | 37 | 38 | Lighting Off 39 | Cull [_CullMode] 40 | ZTest [unity_GUIZTestMode] 41 | ZWrite Off 42 | Fog { Mode Off } 43 | Blend SrcAlpha OneMinusSrcAlpha 44 | ColorMask[_ColorMask] 45 | 46 | Pass { 47 | CGPROGRAM 48 | #pragma vertex vert 49 | #pragma fragment frag 50 | 51 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 52 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 53 | 54 | 55 | #include "UnityCG.cginc" 56 | 57 | struct appdata_t { 58 | float4 vertex : POSITION; 59 | fixed4 color : COLOR; 60 | float2 texcoord0 : TEXCOORD0; 61 | float2 texcoord1 : TEXCOORD1; 62 | }; 63 | 64 | struct v2f { 65 | float4 vertex : SV_POSITION; 66 | fixed4 color : COLOR; 67 | float2 texcoord0 : TEXCOORD0; 68 | float2 texcoord1 : TEXCOORD1; 69 | float4 mask : TEXCOORD2; 70 | }; 71 | 72 | uniform sampler2D _MainTex; 73 | uniform sampler2D _FaceTex; 74 | uniform float4 _FaceTex_ST; 75 | uniform fixed4 _FaceColor; 76 | 77 | uniform float _VertexOffsetX; 78 | uniform float _VertexOffsetY; 79 | uniform float4 _ClipRect; 80 | uniform float _MaskSoftnessX; 81 | uniform float _MaskSoftnessY; 82 | 83 | float2 UnpackUV(float uv) 84 | { 85 | float2 output; 86 | output.x = floor(uv / 4096); 87 | output.y = uv - 4096 * output.x; 88 | 89 | return output * 0.001953125; 90 | } 91 | 92 | v2f vert (appdata_t v) 93 | { 94 | float4 vert = v.vertex; 95 | vert.x += _VertexOffsetX; 96 | vert.y += _VertexOffsetY; 97 | 98 | vert.xy += (vert.w * 0.5) / _ScreenParams.xy; 99 | 100 | float4 vPosition = UnityPixelSnap(UnityObjectToClipPos(vert)); 101 | 102 | fixed4 faceColor = v.color; 103 | faceColor *= _FaceColor; 104 | 105 | v2f OUT; 106 | OUT.vertex = vPosition; 107 | OUT.color = faceColor; 108 | OUT.texcoord0 = v.texcoord0; 109 | OUT.texcoord1 = TRANSFORM_TEX(UnpackUV(v.texcoord1), _FaceTex); 110 | float2 pixelSize = vPosition.w; 111 | pixelSize /= abs(float2(_ScreenParams.x * UNITY_MATRIX_P[0][0], _ScreenParams.y * UNITY_MATRIX_P[1][1])); 112 | 113 | // Clamp _ClipRect to 16bit. 114 | float4 clampedRect = clamp(_ClipRect, -2e10, 2e10); 115 | OUT.mask = float4(vert.xy * 2 - clampedRect.xy - clampedRect.zw, 0.25 / (0.25 * half2(_MaskSoftnessX, _MaskSoftnessY) + pixelSize.xy)); 116 | 117 | return OUT; 118 | } 119 | 120 | fixed4 frag (v2f IN) : SV_Target 121 | { 122 | fixed4 color = tex2D(_MainTex, IN.texcoord0); 123 | color = fixed4 (tex2D(_FaceTex, IN.texcoord1).rgb * IN.color.rgb, IN.color.a * color.a); 124 | 125 | // Alternative implementation to UnityGet2DClipping with support for softness. 126 | #if UNITY_UI_CLIP_RECT 127 | half2 m = saturate((_ClipRect.zw - _ClipRect.xy - abs(IN.mask.xy)) * IN.mask.zw); 128 | color *= m.x * m.y; 129 | #endif 130 | 131 | #if UNITY_UI_ALPHACLIP 132 | clip(color.a - 0.001); 133 | #endif 134 | 135 | return color; 136 | } 137 | ENDCG 138 | } 139 | } 140 | 141 | CustomEditor "TMPro.EditorUtilities.TMP_BitmapShaderGUI" 142 | } 143 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | timeCreated: 1463704911 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader: -------------------------------------------------------------------------------- 1 | // Simplified version of the SDF Surface shader : 2 | // - No support for Bevel, Bump or envmap 3 | // - Diffuse only lighting 4 | // - Fully supports only 1 directional light. Other lights can affect it, but it will be per-vertex/SH. 5 | 6 | Shader "TextMeshPro/Mobile/Distance Field (Surface)" { 7 | 8 | Properties { 9 | _FaceTex ("Fill Texture", 2D) = "white" {} 10 | _FaceColor ("Fill Color", Color) = (1,1,1,1) 11 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 12 | 13 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 14 | _OutlineTex ("Outline Texture", 2D) = "white" {} 15 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 16 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 17 | 18 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 19 | _GlowOffset ("Offset", Range(-1,1)) = 0 20 | _GlowInner ("Inner", Range(0,1)) = 0.05 21 | _GlowOuter ("Outer", Range(0,1)) = 0.05 22 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 23 | 24 | _WeightNormal ("Weight Normal", float) = 0 25 | _WeightBold ("Weight Bold", float) = 0.5 26 | 27 | // Should not be directly exposed to the user 28 | _ShaderFlags ("Flags", float) = 0 29 | _ScaleRatioA ("Scale RatioA", float) = 1 30 | _ScaleRatioB ("Scale RatioB", float) = 1 31 | _ScaleRatioC ("Scale RatioC", float) = 1 32 | 33 | _MainTex ("Font Atlas", 2D) = "white" {} 34 | _TextureWidth ("Texture Width", float) = 512 35 | _TextureHeight ("Texture Height", float) = 512 36 | _GradientScale ("Gradient Scale", float) = 5.0 37 | _ScaleX ("Scale X", float) = 1.0 38 | _ScaleY ("Scale Y", float) = 1.0 39 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 40 | _Sharpness ("Sharpness", Range(-1,1)) = 0 41 | 42 | _VertexOffsetX ("Vertex OffsetX", float) = 0 43 | _VertexOffsetY ("Vertex OffsetY", float) = 0 44 | 45 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 46 | //_MaskSoftness ("Mask Softness", float) = 0 47 | } 48 | 49 | SubShader { 50 | 51 | Tags { 52 | "Queue"="Transparent" 53 | "IgnoreProjector"="True" 54 | "RenderType"="Transparent" 55 | } 56 | 57 | LOD 300 58 | Cull [_CullMode] 59 | 60 | CGPROGRAM 61 | #pragma surface PixShader Lambert alpha:blend vertex:VertShader noforwardadd nolightmap nodirlightmap 62 | #pragma target 3.0 63 | #pragma shader_feature __ GLOW_ON 64 | 65 | #include "TMPro_Properties.cginc" 66 | #include "TMPro.cginc" 67 | 68 | half _FaceShininess; 69 | half _OutlineShininess; 70 | 71 | struct Input 72 | { 73 | fixed4 color : COLOR; 74 | float2 uv_MainTex; 75 | float2 uv2_FaceTex; 76 | float2 uv2_OutlineTex; 77 | float2 param; // Weight, Scale 78 | float3 viewDirEnv; 79 | }; 80 | 81 | #include "TMPro_Surface.cginc" 82 | 83 | ENDCG 84 | 85 | // Pass to render object as a shadow caster 86 | Pass 87 | { 88 | Name "Caster" 89 | Tags { "LightMode" = "ShadowCaster" } 90 | Offset 1, 1 91 | 92 | Fog {Mode Off} 93 | ZWrite On ZTest LEqual Cull Off 94 | 95 | CGPROGRAM 96 | #pragma vertex vert 97 | #pragma fragment frag 98 | #pragma multi_compile_shadowcaster 99 | #include "UnityCG.cginc" 100 | 101 | struct v2f { 102 | V2F_SHADOW_CASTER; 103 | float2 uv : TEXCOORD1; 104 | float2 uv2 : TEXCOORD3; 105 | float alphaClip : TEXCOORD2; 106 | }; 107 | 108 | uniform float4 _MainTex_ST; 109 | uniform float4 _OutlineTex_ST; 110 | float _OutlineWidth; 111 | float _FaceDilate; 112 | float _ScaleRatioA; 113 | 114 | v2f vert( appdata_base v ) 115 | { 116 | v2f o; 117 | TRANSFER_SHADOW_CASTER(o) 118 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 119 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 120 | o.alphaClip = o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 121 | return o; 122 | } 123 | 124 | uniform sampler2D _MainTex; 125 | 126 | float4 frag(v2f i) : COLOR 127 | { 128 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 129 | clip(texcol.a - i.alphaClip); 130 | SHADOW_CASTER_FRAGMENT(i) 131 | } 132 | ENDCG 133 | } 134 | } 135 | 136 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 137 | } 138 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Distance Field (Surface)" { 2 | 3 | Properties { 4 | _FaceTex ("Fill Texture", 2D) = "white" {} 5 | _FaceUVSpeedX ("Face UV Speed X", Range(-5, 5)) = 0.0 6 | _FaceUVSpeedY ("Face UV Speed Y", Range(-5, 5)) = 0.0 7 | _FaceColor ("Fill Color", Color) = (1,1,1,1) 8 | _FaceDilate ("Face Dilate", Range(-1,1)) = 0 9 | 10 | _OutlineColor ("Outline Color", Color) = (0,0,0,1) 11 | _OutlineTex ("Outline Texture", 2D) = "white" {} 12 | _OutlineUVSpeedX ("Outline UV Speed X", Range(-5, 5)) = 0.0 13 | _OutlineUVSpeedY ("Outline UV Speed Y", Range(-5, 5)) = 0.0 14 | _OutlineWidth ("Outline Thickness", Range(0, 1)) = 0 15 | _OutlineSoftness ("Outline Softness", Range(0,1)) = 0 16 | 17 | _Bevel ("Bevel", Range(0,1)) = 0.5 18 | _BevelOffset ("Bevel Offset", Range(-0.5,0.5)) = 0 19 | _BevelWidth ("Bevel Width", Range(-.5,0.5)) = 0 20 | _BevelClamp ("Bevel Clamp", Range(0,1)) = 0 21 | _BevelRoundness ("Bevel Roundness", Range(0,1)) = 0 22 | 23 | _BumpMap ("Normalmap", 2D) = "bump" {} 24 | _BumpOutline ("Bump Outline", Range(0,1)) = 0.5 25 | _BumpFace ("Bump Face", Range(0,1)) = 0.5 26 | 27 | _ReflectFaceColor ("Face Color", Color) = (0,0,0,1) 28 | _ReflectOutlineColor ("Outline Color", Color) = (0,0,0,1) 29 | _Cube ("Reflection Cubemap", Cube) = "black" { /* TexGen CubeReflect */ } 30 | _EnvMatrixRotation ("Texture Rotation", vector) = (0, 0, 0, 0) 31 | _SpecColor ("Specular Color", Color) = (0,0,0,1) 32 | 33 | _FaceShininess ("Face Shininess", Range(0,1)) = 0 34 | _OutlineShininess ("Outline Shininess", Range(0,1)) = 0 35 | 36 | _GlowColor ("Color", Color) = (0, 1, 0, 0.5) 37 | _GlowOffset ("Offset", Range(-1,1)) = 0 38 | _GlowInner ("Inner", Range(0,1)) = 0.05 39 | _GlowOuter ("Outer", Range(0,1)) = 0.05 40 | _GlowPower ("Falloff", Range(1, 0)) = 0.75 41 | 42 | _WeightNormal ("Weight Normal", float) = 0 43 | _WeightBold ("Weight Bold", float) = 0.5 44 | 45 | // Should not be directly exposed to the user 46 | _ShaderFlags ("Flags", float) = 0 47 | _ScaleRatioA ("Scale RatioA", float) = 1 48 | _ScaleRatioB ("Scale RatioB", float) = 1 49 | _ScaleRatioC ("Scale RatioC", float) = 1 50 | 51 | _MainTex ("Font Atlas", 2D) = "white" {} 52 | _TextureWidth ("Texture Width", float) = 512 53 | _TextureHeight ("Texture Height", float) = 512 54 | _GradientScale ("Gradient Scale", float) = 5.0 55 | _ScaleX ("Scale X", float) = 1.0 56 | _ScaleY ("Scale Y", float) = 1.0 57 | _PerspectiveFilter ("Perspective Correction", Range(0, 1)) = 0.875 58 | _Sharpness ("Sharpness", Range(-1,1)) = 0 59 | 60 | _VertexOffsetX ("Vertex OffsetX", float) = 0 61 | _VertexOffsetY ("Vertex OffsetY", float) = 0 62 | //_MaskCoord ("Mask Coords", vector) = (0,0,0,0) 63 | //_MaskSoftness ("Mask Softness", float) = 0 64 | } 65 | 66 | SubShader { 67 | 68 | Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" } 69 | 70 | LOD 300 71 | Cull [_CullMode] 72 | 73 | CGPROGRAM 74 | #pragma surface PixShader BlinnPhong alpha:blend vertex:VertShader nolightmap nodirlightmap 75 | #pragma target 3.0 76 | #pragma shader_feature __ GLOW_ON 77 | #pragma glsl 78 | 79 | #include "TMPro_Properties.cginc" 80 | #include "TMPro.cginc" 81 | 82 | half _FaceShininess; 83 | half _OutlineShininess; 84 | 85 | struct Input 86 | { 87 | fixed4 color : COLOR; 88 | float2 uv_MainTex; 89 | float2 uv2_FaceTex; 90 | float2 uv2_OutlineTex; 91 | float2 param; // Weight, Scale 92 | float3 viewDirEnv; 93 | }; 94 | 95 | 96 | #define BEVEL_ON 1 97 | #include "TMPro_Surface.cginc" 98 | 99 | ENDCG 100 | 101 | // Pass to render object as a shadow caster 102 | Pass 103 | { 104 | Name "Caster" 105 | Tags { "LightMode" = "ShadowCaster" } 106 | Offset 1, 1 107 | 108 | Fog {Mode Off} 109 | ZWrite On 110 | ZTest LEqual 111 | Cull Off 112 | 113 | CGPROGRAM 114 | #pragma vertex vert 115 | #pragma fragment frag 116 | #pragma multi_compile_shadowcaster 117 | #include "UnityCG.cginc" 118 | 119 | struct v2f { 120 | V2F_SHADOW_CASTER; 121 | float2 uv : TEXCOORD1; 122 | float2 uv2 : TEXCOORD3; 123 | float alphaClip : TEXCOORD2; 124 | }; 125 | 126 | uniform float4 _MainTex_ST; 127 | uniform float4 _OutlineTex_ST; 128 | float _OutlineWidth; 129 | float _FaceDilate; 130 | float _ScaleRatioA; 131 | 132 | v2f vert( appdata_base v ) 133 | { 134 | v2f o; 135 | TRANSFER_SHADOW_CASTER(o) 136 | o.uv = TRANSFORM_TEX(v.texcoord, _MainTex); 137 | o.uv2 = TRANSFORM_TEX(v.texcoord, _OutlineTex); 138 | o.alphaClip = (1.0 - _OutlineWidth * _ScaleRatioA - _FaceDilate * _ScaleRatioA) / 2; 139 | return o; 140 | } 141 | 142 | uniform sampler2D _MainTex; 143 | 144 | float4 frag(v2f i) : COLOR 145 | { 146 | fixed4 texcol = tex2D(_MainTex, i.uv).a; 147 | clip(texcol.a - i.alphaClip); 148 | SHADOW_CASTER_FRAGMENT(i) 149 | } 150 | ENDCG 151 | } 152 | } 153 | 154 | CustomEditor "TMPro.EditorUtilities.TMP_SDFShaderGUI" 155 | } 156 | 157 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader: -------------------------------------------------------------------------------- 1 | Shader "TextMeshPro/Sprite" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Sprite Texture", 2D) = "white" {} 6 | _Color ("Tint", Color) = (1,1,1,1) 7 | 8 | _StencilComp ("Stencil Comparison", Float) = 8 9 | _Stencil ("Stencil ID", Float) = 0 10 | _StencilOp ("Stencil Operation", Float) = 0 11 | _StencilWriteMask ("Stencil Write Mask", Float) = 255 12 | _StencilReadMask ("Stencil Read Mask", Float) = 255 13 | 14 | _ColorMask ("Color Mask", Float) = 15 15 | _ClipRect ("Clip Rect", vector) = (-32767, -32767, 32767, 32767) 16 | 17 | [Toggle(UNITY_UI_ALPHACLIP)] _UseUIAlphaClip ("Use Alpha Clip", Float) = 0 18 | } 19 | 20 | SubShader 21 | { 22 | Tags 23 | { 24 | "Queue"="Transparent" 25 | "IgnoreProjector"="True" 26 | "RenderType"="Transparent" 27 | "PreviewType"="Plane" 28 | "CanUseSpriteAtlas"="True" 29 | } 30 | 31 | Stencil 32 | { 33 | Ref [_Stencil] 34 | Comp [_StencilComp] 35 | Pass [_StencilOp] 36 | ReadMask [_StencilReadMask] 37 | WriteMask [_StencilWriteMask] 38 | } 39 | 40 | Cull Off 41 | Lighting Off 42 | ZWrite Off 43 | ZTest [unity_GUIZTestMode] 44 | Blend SrcAlpha OneMinusSrcAlpha 45 | ColorMask [_ColorMask] 46 | 47 | Pass 48 | { 49 | CGPROGRAM 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | 53 | #include "UnityCG.cginc" 54 | #include "UnityUI.cginc" 55 | 56 | #pragma multi_compile __ UNITY_UI_CLIP_RECT 57 | #pragma multi_compile __ UNITY_UI_ALPHACLIP 58 | 59 | struct appdata_t 60 | { 61 | float4 vertex : POSITION; 62 | float4 color : COLOR; 63 | float2 texcoord : TEXCOORD0; 64 | }; 65 | 66 | struct v2f 67 | { 68 | float4 vertex : SV_POSITION; 69 | fixed4 color : COLOR; 70 | half2 texcoord : TEXCOORD0; 71 | float4 worldPosition : TEXCOORD1; 72 | }; 73 | 74 | fixed4 _Color; 75 | fixed4 _TextureSampleAdd; 76 | float4 _ClipRect; 77 | 78 | v2f vert(appdata_t IN) 79 | { 80 | v2f OUT; 81 | OUT.worldPosition = IN.vertex; 82 | OUT.vertex = UnityObjectToClipPos(OUT.worldPosition); 83 | 84 | OUT.texcoord = IN.texcoord; 85 | 86 | #ifdef UNITY_HALF_TEXEL_OFFSET 87 | OUT.vertex.xy += (_ScreenParams.zw-1.0)*float2(-1,1); 88 | #endif 89 | 90 | OUT.color = IN.color * _Color; 91 | return OUT; 92 | } 93 | 94 | sampler2D _MainTex; 95 | 96 | fixed4 frag(v2f IN) : SV_Target 97 | { 98 | half4 color = (tex2D(_MainTex, IN.texcoord) + _TextureSampleAdd) * IN.color; 99 | 100 | #if UNITY_UI_CLIP_RECT 101 | color.a *= UnityGet2DClipping(IN.worldPosition.xy, _ClipRect); 102 | #endif 103 | 104 | #ifdef UNITY_UI_ALPHACLIP 105 | clip (color.a - 0.001); 106 | #endif 107 | 108 | return color; 109 | } 110 | ENDCG 111 | } 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | timeCreated: 1450517184 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc: -------------------------------------------------------------------------------- 1 | float2 UnpackUV(float uv) 2 | { 3 | float2 output; 4 | output.x = floor(uv / 4096); 5 | output.y = uv - 4096 * output.x; 6 | 7 | return output * 0.001953125; 8 | } 9 | 10 | fixed4 GetColor(half d, fixed4 faceColor, fixed4 outlineColor, half outline, half softness) 11 | { 12 | half faceAlpha = 1-saturate((d - outline * 0.5 + softness * 0.5) / (1.0 + softness)); 13 | half outlineAlpha = saturate((d + outline * 0.5)) * sqrt(min(1.0, outline)); 14 | 15 | faceColor.rgb *= faceColor.a; 16 | outlineColor.rgb *= outlineColor.a; 17 | 18 | faceColor = lerp(faceColor, outlineColor, outlineAlpha); 19 | 20 | faceColor *= faceAlpha; 21 | 22 | return faceColor; 23 | } 24 | 25 | float3 GetSurfaceNormal(float4 h, float bias) 26 | { 27 | bool raisedBevel = step(1, fmod(_ShaderFlags, 2)); 28 | 29 | h += bias+_BevelOffset; 30 | 31 | float bevelWidth = max(.01, _OutlineWidth+_BevelWidth); 32 | 33 | // Track outline 34 | h -= .5; 35 | h /= bevelWidth; 36 | h = saturate(h+.5); 37 | 38 | if(raisedBevel) h = 1 - abs(h*2.0 - 1.0); 39 | h = lerp(h, sin(h*3.141592/2.0), _BevelRoundness); 40 | h = min(h, 1.0-_BevelClamp); 41 | h *= _Bevel * bevelWidth * _GradientScale * -2.0; 42 | 43 | float3 va = normalize(float3(1.0, 0.0, h.y - h.x)); 44 | float3 vb = normalize(float3(0.0, -1.0, h.w - h.z)); 45 | 46 | return cross(va, vb); 47 | } 48 | 49 | float3 GetSurfaceNormal(float2 uv, float bias, float3 delta) 50 | { 51 | // Read "height field" 52 | float4 h = {tex2D(_MainTex, uv - delta.xz).a, 53 | tex2D(_MainTex, uv + delta.xz).a, 54 | tex2D(_MainTex, uv - delta.zy).a, 55 | tex2D(_MainTex, uv + delta.zy).a}; 56 | 57 | return GetSurfaceNormal(h, bias); 58 | } 59 | 60 | float3 GetSpecular(float3 n, float3 l) 61 | { 62 | float spec = pow(max(0.0, dot(n, l)), _Reflectivity); 63 | return _SpecularColor.rgb * spec * _SpecularPower; 64 | } 65 | 66 | float4 GetGlowColor(float d, float scale) 67 | { 68 | float glow = d - (_GlowOffset*_ScaleRatioB) * 0.5 * scale; 69 | float t = lerp(_GlowInner, (_GlowOuter * _ScaleRatioB), step(0.0, glow)) * 0.5 * scale; 70 | glow = saturate(abs(glow/(1.0 + t))); 71 | glow = 1.0-pow(glow, _GlowPower); 72 | glow *= sqrt(min(1.0, t)); // Fade off glow thinner than 1 screen pixel 73 | return float4(_GlowColor.rgb, saturate(_GlowColor.a * glow * 2)); 74 | } 75 | 76 | float4 BlendARGB(float4 overlying, float4 underlying) 77 | { 78 | overlying.rgb *= overlying.a; 79 | underlying.rgb *= underlying.a; 80 | float3 blended = overlying.rgb + ((1-overlying.a)*underlying.rgb); 81 | float alpha = underlying.a + (1-underlying.a)*overlying.a; 82 | return float4(blended, alpha); 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc: -------------------------------------------------------------------------------- 1 | // UI Editable properties 2 | uniform sampler2D _FaceTex; // Alpha : Signed Distance 3 | uniform float _FaceUVSpeedX; 4 | uniform float _FaceUVSpeedY; 5 | uniform fixed4 _FaceColor; // RGBA : Color + Opacity 6 | uniform float _FaceDilate; // v[ 0, 1] 7 | uniform float _OutlineSoftness; // v[ 0, 1] 8 | 9 | uniform sampler2D _OutlineTex; // RGBA : Color + Opacity 10 | uniform float _OutlineUVSpeedX; 11 | uniform float _OutlineUVSpeedY; 12 | uniform fixed4 _OutlineColor; // RGBA : Color + Opacity 13 | uniform float _OutlineWidth; // v[ 0, 1] 14 | 15 | uniform float _Bevel; // v[ 0, 1] 16 | uniform float _BevelOffset; // v[-1, 1] 17 | uniform float _BevelWidth; // v[-1, 1] 18 | uniform float _BevelClamp; // v[ 0, 1] 19 | uniform float _BevelRoundness; // v[ 0, 1] 20 | 21 | uniform sampler2D _BumpMap; // Normal map 22 | uniform float _BumpOutline; // v[ 0, 1] 23 | uniform float _BumpFace; // v[ 0, 1] 24 | 25 | uniform samplerCUBE _Cube; // Cube / sphere map 26 | uniform fixed4 _ReflectFaceColor; // RGB intensity 27 | uniform fixed4 _ReflectOutlineColor; 28 | //uniform float _EnvTiltX; // v[-1, 1] 29 | //uniform float _EnvTiltY; // v[-1, 1] 30 | uniform float3 _EnvMatrixRotation; 31 | uniform float4x4 _EnvMatrix; 32 | 33 | uniform fixed4 _SpecularColor; // RGB intensity 34 | uniform float _LightAngle; // v[ 0,Tau] 35 | uniform float _SpecularPower; // v[ 0, 1] 36 | uniform float _Reflectivity; // v[ 5, 15] 37 | uniform float _Diffuse; // v[ 0, 1] 38 | uniform float _Ambient; // v[ 0, 1] 39 | 40 | uniform fixed4 _UnderlayColor; // RGBA : Color + Opacity 41 | uniform float _UnderlayOffsetX; // v[-1, 1] 42 | uniform float _UnderlayOffsetY; // v[-1, 1] 43 | uniform float _UnderlayDilate; // v[-1, 1] 44 | uniform float _UnderlaySoftness; // v[ 0, 1] 45 | 46 | uniform fixed4 _GlowColor; // RGBA : Color + Intesity 47 | uniform float _GlowOffset; // v[-1, 1] 48 | uniform float _GlowOuter; // v[ 0, 1] 49 | uniform float _GlowInner; // v[ 0, 1] 50 | uniform float _GlowPower; // v[ 1, 1/(1+4*4)] 51 | 52 | // API Editable properties 53 | uniform float _ShaderFlags; 54 | uniform float _WeightNormal; 55 | uniform float _WeightBold; 56 | 57 | uniform float _ScaleRatioA; 58 | uniform float _ScaleRatioB; 59 | uniform float _ScaleRatioC; 60 | 61 | uniform float _VertexOffsetX; 62 | uniform float _VertexOffsetY; 63 | 64 | //uniform float _UseClipRect; 65 | uniform float _MaskID; 66 | uniform sampler2D _MaskTex; 67 | uniform float4 _MaskCoord; 68 | uniform float4 _ClipRect; // bottom left(x,y) : top right(z,w) 69 | //uniform float _MaskWipeControl; 70 | //uniform float _MaskEdgeSoftness; 71 | //uniform fixed4 _MaskEdgeColor; 72 | //uniform bool _MaskInverse; 73 | 74 | uniform float _MaskSoftnessX; 75 | uniform float _MaskSoftnessY; 76 | 77 | // Font Atlas properties 78 | uniform sampler2D _MainTex; 79 | uniform float _TextureWidth; 80 | uniform float _TextureHeight; 81 | uniform float _GradientScale; 82 | uniform float _ScaleX; 83 | uniform float _ScaleY; 84 | uniform float _PerspectiveFilter; 85 | uniform float _Sharpness; 86 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc: -------------------------------------------------------------------------------- 1 | void VertShader(inout appdata_full v, out Input data) 2 | { 3 | v.vertex.x += _VertexOffsetX; 4 | v.vertex.y += _VertexOffsetY; 5 | 6 | UNITY_INITIALIZE_OUTPUT(Input, data); 7 | 8 | float bold = step(v.texcoord1.y, 0); 9 | 10 | // Generate normal for backface 11 | float3 view = ObjSpaceViewDir(v.vertex); 12 | v.normal *= sign(dot(v.normal, view)); 13 | 14 | #if USE_DERIVATIVE 15 | data.param.y = 1; 16 | #else 17 | float4 vert = v.vertex; 18 | float4 vPosition = UnityObjectToClipPos(vert); 19 | float2 pixelSize = vPosition.w; 20 | 21 | pixelSize /= float2(_ScaleX, _ScaleY) * mul((float2x2)UNITY_MATRIX_P, _ScreenParams.xy); 22 | float scale = rsqrt(dot(pixelSize, pixelSize)); 23 | scale *= abs(v.texcoord1.y) * _GradientScale * (_Sharpness + 1); 24 | scale = lerp(scale * (1 - _PerspectiveFilter), scale, abs(dot(UnityObjectToWorldNormal(v.normal.xyz), normalize(WorldSpaceViewDir(vert))))); 25 | data.param.y = scale; 26 | #endif 27 | 28 | //float opacity = v.color.a; 29 | 30 | data.param.x = (lerp(_WeightNormal, _WeightBold, bold) / 4.0 + _FaceDilate) * _ScaleRatioA * 0.5; // 31 | 32 | v.texcoord1.xy = UnpackUV(v.texcoord1.x); 33 | data.viewDirEnv = mul((float3x3)_EnvMatrix, WorldSpaceViewDir(v.vertex)); 34 | } 35 | 36 | void PixShader(Input input, inout SurfaceOutput o) 37 | { 38 | 39 | #if USE_DERIVATIVE | BEVEL_ON 40 | float3 delta = float3(1.0 / _TextureWidth, 1.0 / _TextureHeight, 0.0); 41 | 42 | float4 smp4x = { tex2D(_MainTex, input.uv_MainTex - delta.xz).a, 43 | tex2D(_MainTex, input.uv_MainTex + delta.xz).a, 44 | tex2D(_MainTex, input.uv_MainTex - delta.zy).a, 45 | tex2D(_MainTex, input.uv_MainTex + delta.zy).a }; 46 | #endif 47 | 48 | #if USE_DERIVATIVE 49 | // Screen space scaling reciprocal with anisotropic correction 50 | float2 edgeNormal = Normalize(float2(smp4x.x - smp4x.y, smp4x.z - smp4x.w)); 51 | float2 res = float2(_TextureWidth * input.param.y, _TextureHeight); 52 | float2 tdx = ddx(input.uv_MainTex)*res; 53 | float2 tdy = ddy(input.uv_MainTex)*res; 54 | float lx = length(tdx); 55 | float ly = length(tdy); 56 | float s = sqrt(min(lx, ly) / max(lx, ly)); 57 | s = lerp(1, s, abs(dot(normalize(tdx + tdy), edgeNormal))); 58 | float scale = rsqrt(abs(tdx.x * tdy.y - tdx.y * tdy.x)) * (_GradientScale * 2) * s; 59 | #else 60 | float scale = input.param.y; 61 | #endif 62 | 63 | // Signed distance 64 | float c = tex2D(_MainTex, input.uv_MainTex).a; 65 | float sd = (.5 - c - input.param.x) * scale + .5; 66 | float outline = _OutlineWidth*_ScaleRatioA * scale; 67 | float softness = _OutlineSoftness*_ScaleRatioA * scale; 68 | 69 | // Color & Alpha 70 | float4 faceColor = _FaceColor; 71 | float4 outlineColor = _OutlineColor; 72 | faceColor *= input.color; 73 | outlineColor.a *= input.color.a; 74 | faceColor *= tex2D(_FaceTex, float2(input.uv2_FaceTex.x + _FaceUVSpeedX * _Time.y, input.uv2_FaceTex.y + _FaceUVSpeedY * _Time.y)); 75 | outlineColor *= tex2D(_OutlineTex, float2(input.uv2_OutlineTex.x + _OutlineUVSpeedX * _Time.y, input.uv2_OutlineTex.y + _OutlineUVSpeedY * _Time.y)); 76 | faceColor = GetColor(sd, faceColor, outlineColor, outline, softness); 77 | faceColor.rgb /= max(faceColor.a, 0.0001); 78 | 79 | 80 | #if BEVEL_ON 81 | // Face Normal 82 | float3 n = GetSurfaceNormal(smp4x, input.param.x); 83 | 84 | // Bumpmap 85 | float3 bump = UnpackNormal(tex2D(_BumpMap, input.uv2_FaceTex.xy)).xyz; 86 | bump *= lerp(_BumpFace, _BumpOutline, saturate(sd + outline * 0.5)); 87 | bump = lerp(float3(0, 0, 1), bump, faceColor.a); 88 | n = normalize(n - bump); 89 | 90 | // Cubemap reflection 91 | fixed4 reflcol = texCUBE(_Cube, reflect(input.viewDirEnv, mul((float3x3)unity_ObjectToWorld, n))); 92 | float3 emission = reflcol.rgb * lerp(_ReflectFaceColor.rgb, _ReflectOutlineColor.rgb, saturate(sd + outline * 0.5)) * faceColor.a; 93 | #else 94 | float3 n = float3(0, 0, -1); 95 | float3 emission = float3(0, 0, 0); 96 | #endif 97 | 98 | 99 | 100 | #if GLOW_ON 101 | float4 glowColor = GetGlowColor(sd, scale); 102 | glowColor.a *= input.color.a; 103 | emission += glowColor.rgb*glowColor.a; 104 | faceColor = BlendARGB(glowColor, faceColor); 105 | faceColor.rgb /= max(faceColor.a, 0.0001); 106 | #endif 107 | 108 | // Set Standard output structure 109 | o.Albedo = faceColor.rgb; 110 | o.Normal = -n; 111 | o.Emission = emission; 112 | o.Specular = lerp(_FaceShininess, _OutlineShininess, saturate(sd + outline * 0.5)); 113 | o.Gloss = 1; 114 | o.Alpha = faceColor.a; 115 | } 116 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | m_enableWordWrapping: 1 16 | m_enableKerning: 1 17 | m_enableExtraPadding: 0 18 | m_enableTintAllSprites: 0 19 | m_enableParseEscapeCharacters: 1 20 | m_EnableRaycastTarget: 1 21 | m_GetFontFeaturesAtRuntime: 1 22 | m_missingGlyphCharacter: 0 23 | m_warningsDisabled: 1 24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 25 | m_defaultFontAssetPath: Fonts & Materials/ 26 | m_defaultFontSize: 36 27 | m_defaultAutoSizeMinRatio: 0.5 28 | m_defaultAutoSizeMaxRatio: 2 29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 31 | m_autoSizeTextContainer: 0 32 | m_fallbackFontAssets: [] 33 | m_matchMaterialPreset: 1 34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 35 | type: 2} 36 | m_defaultSpriteAssetPath: Sprite Assets/ 37 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 38 | m_enableEmojiSupport: 1 39 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 40 | type: 2} 41 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 42 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 43 | type: 3} 44 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json: -------------------------------------------------------------------------------- 1 | {"frames": [ 2 | 3 | { 4 | "filename": "1f60a.png", 5 | "frame": {"x":0,"y":0,"w":128,"h":128}, 6 | "rotated": false, 7 | "trimmed": false, 8 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 9 | "sourceSize": {"w":128,"h":128}, 10 | "pivot": {"x":0.5,"y":0.5} 11 | }, 12 | { 13 | "filename": "1f60b.png", 14 | "frame": {"x":128,"y":0,"w":128,"h":128}, 15 | "rotated": false, 16 | "trimmed": false, 17 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 18 | "sourceSize": {"w":128,"h":128}, 19 | "pivot": {"x":0.5,"y":0.5} 20 | }, 21 | { 22 | "filename": "1f60d.png", 23 | "frame": {"x":256,"y":0,"w":128,"h":128}, 24 | "rotated": false, 25 | "trimmed": false, 26 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 27 | "sourceSize": {"w":128,"h":128}, 28 | "pivot": {"x":0.5,"y":0.5} 29 | }, 30 | { 31 | "filename": "1f60e.png", 32 | "frame": {"x":384,"y":0,"w":128,"h":128}, 33 | "rotated": false, 34 | "trimmed": false, 35 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 36 | "sourceSize": {"w":128,"h":128}, 37 | "pivot": {"x":0.5,"y":0.5} 38 | }, 39 | { 40 | "filename": "1f600.png", 41 | "frame": {"x":0,"y":128,"w":128,"h":128}, 42 | "rotated": false, 43 | "trimmed": false, 44 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 45 | "sourceSize": {"w":128,"h":128}, 46 | "pivot": {"x":0.5,"y":0.5} 47 | }, 48 | { 49 | "filename": "1f601.png", 50 | "frame": {"x":128,"y":128,"w":128,"h":128}, 51 | "rotated": false, 52 | "trimmed": false, 53 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 54 | "sourceSize": {"w":128,"h":128}, 55 | "pivot": {"x":0.5,"y":0.5} 56 | }, 57 | { 58 | "filename": "1f602.png", 59 | "frame": {"x":256,"y":128,"w":128,"h":128}, 60 | "rotated": false, 61 | "trimmed": false, 62 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 63 | "sourceSize": {"w":128,"h":128}, 64 | "pivot": {"x":0.5,"y":0.5} 65 | }, 66 | { 67 | "filename": "1f603.png", 68 | "frame": {"x":384,"y":128,"w":128,"h":128}, 69 | "rotated": false, 70 | "trimmed": false, 71 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 72 | "sourceSize": {"w":128,"h":128}, 73 | "pivot": {"x":0.5,"y":0.5} 74 | }, 75 | { 76 | "filename": "1f604.png", 77 | "frame": {"x":0,"y":256,"w":128,"h":128}, 78 | "rotated": false, 79 | "trimmed": false, 80 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 81 | "sourceSize": {"w":128,"h":128}, 82 | "pivot": {"x":0.5,"y":0.5} 83 | }, 84 | { 85 | "filename": "1f605.png", 86 | "frame": {"x":128,"y":256,"w":128,"h":128}, 87 | "rotated": false, 88 | "trimmed": false, 89 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 90 | "sourceSize": {"w":128,"h":128}, 91 | "pivot": {"x":0.5,"y":0.5} 92 | }, 93 | { 94 | "filename": "1f606.png", 95 | "frame": {"x":256,"y":256,"w":128,"h":128}, 96 | "rotated": false, 97 | "trimmed": false, 98 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 99 | "sourceSize": {"w":128,"h":128}, 100 | "pivot": {"x":0.5,"y":0.5} 101 | }, 102 | { 103 | "filename": "1f609.png", 104 | "frame": {"x":384,"y":256,"w":128,"h":128}, 105 | "rotated": false, 106 | "trimmed": false, 107 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 108 | "sourceSize": {"w":128,"h":128}, 109 | "pivot": {"x":0.5,"y":0.5} 110 | }, 111 | { 112 | "filename": "1f618.png", 113 | "frame": {"x":0,"y":384,"w":128,"h":128}, 114 | "rotated": false, 115 | "trimmed": false, 116 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 117 | "sourceSize": {"w":128,"h":128}, 118 | "pivot": {"x":0.5,"y":0.5} 119 | }, 120 | { 121 | "filename": "1f923.png", 122 | "frame": {"x":128,"y":384,"w":128,"h":128}, 123 | "rotated": false, 124 | "trimmed": false, 125 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 126 | "sourceSize": {"w":128,"h":128}, 127 | "pivot": {"x":0.5,"y":0.5} 128 | }, 129 | { 130 | "filename": "263a.png", 131 | "frame": {"x":256,"y":384,"w":128,"h":128}, 132 | "rotated": false, 133 | "trimmed": false, 134 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 135 | "sourceSize": {"w":128,"h":128}, 136 | "pivot": {"x":0.5,"y":0.5} 137 | }, 138 | { 139 | "filename": "2639.png", 140 | "frame": {"x":384,"y":384,"w":128,"h":128}, 141 | "rotated": false, 142 | "trimmed": false, 143 | "spriteSourceSize": {"x":0,"y":0,"w":128,"h":128}, 144 | "sourceSize": {"w":128,"h":128}, 145 | "pivot": {"x":0.5,"y":0.5} 146 | }], 147 | "meta": { 148 | "app": "http://www.codeandweb.com/texturepacker", 149 | "version": "1.0", 150 | "image": "EmojiOne.png", 151 | "format": "RGBA8888", 152 | "size": {"w":512,"h":512}, 153 | "scale": "1", 154 | "smartupdate": "$TexturePacker:SmartUpdate:196a26a2e149d875b91ffc8fa3581e76:fc928c7e275404b7e0649307410475cb:424723c3774975ddb2053fd5c4b85f6e$" 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DapperDino/RPG-Systems-Tutorial/a7dd29added3d098d8089ff9daf631c408f9b656/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 DapperDino 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Logs/Packages-Update.log: -------------------------------------------------------------------------------- 1 | 2 | === Fri Jun 21 08:05:31 2019 3 | 4 | Packages were changed. 5 | Update Mode: mergeDefaultDependencies 6 | 7 | The following packages were updated: 8 | com.unity.analytics from version 3.2.2 to 3.3.2 9 | com.unity.collab-proxy from version 1.2.9 to 1.2.16 10 | com.unity.package-manager-ui from version 2.1.1 to 2.1.2 11 | com.unity.purchasing from version 2.0.1 to 2.0.6 12 | com.unity.textmeshpro from version 1.3.0 to 2.0.1 13 | com.unity.timeline from version 0.0.0-builtin to 1.0.0 14 | 15 | === Fri Aug 2 12:50:05 2019 16 | 17 | Packages were changed. 18 | Update Mode: updateDependencies 19 | 20 | The following packages were added: 21 | com.unity.2d.tilemap@1.0.0 22 | com.unity.ext.nunit@1.0.0 23 | com.unity.test-framework@1.0.13 24 | com.unity.2d.sprite@1.0.0 25 | com.unity.ide.vscode@1.0.7 26 | com.unity.ide.rider@1.0.8 27 | com.unity.ugui@1.0.0 28 | com.unity.modules.androidjni@1.0.0 29 | The following packages were updated: 30 | com.unity.package-manager-ui from version 2.1.2 to 2.2.0 31 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.2d.sprite": "1.0.0", 4 | "com.unity.2d.tilemap": "1.0.0", 5 | "com.unity.cinemachine": "2.3.4", 6 | "com.unity.ext.nunit": "1.0.0", 7 | "com.unity.ide.rider": "1.0.8", 8 | "com.unity.ide.vscode": "1.0.7", 9 | "com.unity.package-manager-ui": "2.2.0", 10 | "com.unity.test-framework": "1.0.13", 11 | "com.unity.textmeshpro": "2.0.1", 12 | "com.unity.ugui": "1.0.0", 13 | "com.unity.modules.ai": "1.0.0", 14 | "com.unity.modules.androidjni": "1.0.0", 15 | "com.unity.modules.animation": "1.0.0", 16 | "com.unity.modules.assetbundle": "1.0.0", 17 | "com.unity.modules.audio": "1.0.0", 18 | "com.unity.modules.cloth": "1.0.0", 19 | "com.unity.modules.director": "1.0.0", 20 | "com.unity.modules.imageconversion": "1.0.0", 21 | "com.unity.modules.imgui": "1.0.0", 22 | "com.unity.modules.jsonserialize": "1.0.0", 23 | "com.unity.modules.particlesystem": "1.0.0", 24 | "com.unity.modules.physics": "1.0.0", 25 | "com.unity.modules.physics2d": "1.0.0", 26 | "com.unity.modules.screencapture": "1.0.0", 27 | "com.unity.modules.terrain": "1.0.0", 28 | "com.unity.modules.terrainphysics": "1.0.0", 29 | "com.unity.modules.tilemap": "1.0.0", 30 | "com.unity.modules.ui": "1.0.0", 31 | "com.unity.modules.uielements": "1.0.0", 32 | "com.unity.modules.umbra": "1.0.0", 33 | "com.unity.modules.unityanalytics": "1.0.0", 34 | "com.unity.modules.unitywebrequest": "1.0.0", 35 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 36 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 37 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 38 | "com.unity.modules.unitywebrequestwww": "1.0.0", 39 | "com.unity.modules.vehicles": "1.0.0", 40 | "com.unity.modules.video": "1.0.0", 41 | "com.unity.modules.vr": "1.0.0", 42 | "com.unity.modules.wind": "1.0.0", 43 | "com.unity.modules.xr": "1.0.0" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffc9fcffffc9fcffffffffffffc9fcffffc9fcffffffffffffffffffffc9fcffffc9feffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 26 | m_ContactPairsMode: 0 27 | m_BroadphaseType: 0 28 | m_WorldBounds: 29 | m_Center: {x: 0, y: 0, z: 0} 30 | m_Extent: {x: 250, y: 250, z: 250} 31 | m_WorldSubdivisions: 8 32 | m_FrictionType: 0 33 | m_EnableEnhancedDeterminism: 0 34 | m_EnableUnifiedHeightmaps: 1 35 | m_DefaultMaxAngularSpeed: 7 36 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/Scene_Main.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 12 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 34 | m_PreloadedShaders: [] 35 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 36 | type: 0} 37 | m_CustomRenderPipeline: {fileID: 0} 38 | m_TransparencySortMode: 0 39 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 40 | m_DefaultRenderingPath: 1 41 | m_DefaultMobileRenderingPath: 1 42 | m_TierSettings: [] 43 | m_LightmapStripping: 0 44 | m_FogStripping: 0 45 | m_InstancingStripping: 0 46 | m_LightmapKeepPlain: 1 47 | m_LightmapKeepDirCombined: 1 48 | m_LightmapKeepDynamicPlain: 1 49 | m_LightmapKeepDynamicDirCombined: 1 50 | m_LightmapKeepShadowMask: 1 51 | m_LightmapKeepSubtractive: 1 52 | m_FogKeepLinear: 1 53 | m_FogKeepExp: 1 54 | m_FogKeepExp2: 1 55 | m_AlbedoSwatchInfos: [] 56 | m_LightsUseLinearIntensity: 0 57 | m_LightsUseColorTemperature: 0 58 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 0 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: c8fcffffc8fcffffc8fcffffffffffffc8fcffffc8fcffffffffffffffffffffc8fcffffc8fcffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2019.2.0f1 2 | m_EditorVersionWithRevision: 2019.2.0f1 (20c1667945cf) 3 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - Interactable 17 | - Projectile 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_TestInitMode: 0 13 | CrashReportingSettings: 14 | m_EventUrl: https://perf-events.cloud.unity3d.com 15 | m_Enabled: 0 16 | m_LogBufferSize: 10 17 | m_CaptureEditorExceptions: 1 18 | UnityPurchasingSettings: 19 | m_Enabled: 0 20 | m_TestMode: 0 21 | UnityAnalyticsSettings: 22 | m_Enabled: 0 23 | m_TestMode: 0 24 | m_InitializeOnStartup: 1 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_RenderPipeSettingsPath: 8 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # RPG-Systems-Tutorial 2 | Repo for my "RPG Systems Tutorial" series. 3 | --------------------------------------------------------------------------------