├── .gitignore
├── Assets
├── Items.meta
├── Items
│ ├── Item_Consumable_HealthPotion.asset
│ ├── Item_Consumable_HealthPotion.asset.meta
│ ├── Item_Consumable_ManaPotion.asset
│ └── Item_Consumable_ManaPotion.asset.meta
├── Prefabs.meta
├── Prefabs
│ ├── ItemCanvas.prefab
│ ├── ItemCanvas.prefab.meta
│ ├── TooltipPopup.prefab
│ └── TooltipPopup.prefab.meta
├── Rarities.meta
├── Rarities
│ ├── Rarity_Epic.asset
│ ├── Rarity_Epic.asset.meta
│ ├── Rarity_Rare.asset
│ └── Rarity_Rare.asset.meta
├── Scenes.meta
├── Scenes
│ ├── Scene_Main.unity
│ └── Scene_Main.unity.meta
├── Scripts.meta
├── Scripts
│ ├── Consumable.cs
│ ├── Consumable.cs.meta
│ ├── Item.cs
│ ├── Item.cs.meta
│ ├── ItemButton.cs
│ ├── ItemButton.cs.meta
│ ├── Rarity.cs
│ ├── Rarity.cs.meta
│ ├── TooltipPopup.cs
│ └── TooltipPopup.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 |
--------------------------------------------------------------------------------
/Assets/Items.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: f2ae9f7c041a22544b5dd1a80fe79624
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Items/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: 7ed9f560f02ab2b4894d356dd3a10343, type: 3}
13 | m_Name: Item_Consumable_HealthPotion
14 | m_EditorClassIdentifier:
15 | name: Health Potion
16 | sellPrice: 10
17 | rarity: {fileID: 11400000, guid: a5cfab54d6abfd242b0372b281eb602b, type: 2}
18 | useText: Heals the player.
19 |
--------------------------------------------------------------------------------
/Assets/Items/Item_Consumable_HealthPotion.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 577cf2632954fde44968ff81b4d81df8
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Items/Item_Consumable_ManaPotion.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: 7ed9f560f02ab2b4894d356dd3a10343, type: 3}
13 | m_Name: Item_Consumable_ManaPotion
14 | m_EditorClassIdentifier:
15 | name: Mana Potion
16 | sellPrice: 300
17 | rarity: {fileID: 11400000, guid: 35f08bce9e62807488cb1932e2a0174e, type: 2}
18 | useText: Something else.
19 |
--------------------------------------------------------------------------------
/Assets/Items/Item_Consumable_ManaPotion.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1dfb8f6ffff441345ab328046e56d45a
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 80fdc76db67a1ca4d947e9f9f6c77471
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Prefabs/ItemCanvas.prefab:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!1 &7598714679162978202
4 | GameObject:
5 | m_ObjectHideFlags: 0
6 | m_CorrespondingSourceObject: {fileID: 0}
7 | m_PrefabInstance: {fileID: 0}
8 | m_PrefabAsset: {fileID: 0}
9 | serializedVersion: 6
10 | m_Component:
11 | - component: {fileID: 7598714679162978206}
12 | - component: {fileID: 7598714679162978205}
13 | - component: {fileID: 7598714679162978204}
14 | - component: {fileID: 7598714679162978203}
15 | m_Layer: 5
16 | m_Name: ItemCanvas
17 | m_TagString: Untagged
18 | m_Icon: {fileID: 0}
19 | m_NavMeshLayer: 0
20 | m_StaticEditorFlags: 0
21 | m_IsActive: 1
22 | --- !u!224 &7598714679162978206
23 | RectTransform:
24 | m_ObjectHideFlags: 0
25 | m_CorrespondingSourceObject: {fileID: 0}
26 | m_PrefabInstance: {fileID: 0}
27 | m_PrefabAsset: {fileID: 0}
28 | m_GameObject: {fileID: 7598714679162978202}
29 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
30 | m_LocalPosition: {x: 0, y: 0, z: 0}
31 | m_LocalScale: {x: 0, y: 0, z: 0}
32 | m_Children: []
33 | m_Father: {fileID: 0}
34 | m_RootOrder: 0
35 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
36 | m_AnchorMin: {x: 0, y: 0}
37 | m_AnchorMax: {x: 0, y: 0}
38 | m_AnchoredPosition: {x: 0, y: 0}
39 | m_SizeDelta: {x: 0, y: 0}
40 | m_Pivot: {x: 0, y: 0}
41 | --- !u!223 &7598714679162978205
42 | Canvas:
43 | m_ObjectHideFlags: 0
44 | m_CorrespondingSourceObject: {fileID: 0}
45 | m_PrefabInstance: {fileID: 0}
46 | m_PrefabAsset: {fileID: 0}
47 | m_GameObject: {fileID: 7598714679162978202}
48 | m_Enabled: 1
49 | serializedVersion: 3
50 | m_RenderMode: 0
51 | m_Camera: {fileID: 0}
52 | m_PlaneDistance: 100
53 | m_PixelPerfect: 0
54 | m_ReceivesEvents: 1
55 | m_OverrideSorting: 0
56 | m_OverridePixelPerfect: 0
57 | m_SortingBucketNormalizedSize: 0
58 | m_AdditionalShaderChannelsFlag: 0
59 | m_SortingLayerID: 0
60 | m_SortingOrder: 250
61 | m_TargetDisplay: 0
62 | --- !u!114 &7598714679162978204
63 | MonoBehaviour:
64 | m_ObjectHideFlags: 0
65 | m_CorrespondingSourceObject: {fileID: 0}
66 | m_PrefabInstance: {fileID: 0}
67 | m_PrefabAsset: {fileID: 0}
68 | m_GameObject: {fileID: 7598714679162978202}
69 | m_Enabled: 1
70 | m_EditorHideFlags: 0
71 | m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
72 | m_Name:
73 | m_EditorClassIdentifier:
74 | m_UiScaleMode: 1
75 | m_ReferencePixelsPerUnit: 100
76 | m_ScaleFactor: 1
77 | m_ReferenceResolution: {x: 1920, y: 1080}
78 | m_ScreenMatchMode: 0
79 | m_MatchWidthOrHeight: 1
80 | m_PhysicalUnit: 3
81 | m_FallbackScreenDPI: 96
82 | m_DefaultSpriteDPI: 96
83 | m_DynamicPixelsPerUnit: 1
84 | --- !u!114 &7598714679162978203
85 | MonoBehaviour:
86 | m_ObjectHideFlags: 0
87 | m_CorrespondingSourceObject: {fileID: 0}
88 | m_PrefabInstance: {fileID: 0}
89 | m_PrefabAsset: {fileID: 0}
90 | m_GameObject: {fileID: 7598714679162978202}
91 | m_Enabled: 1
92 | m_EditorHideFlags: 0
93 | m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
94 | m_Name:
95 | m_EditorClassIdentifier:
96 | m_IgnoreReversedGraphics: 1
97 | m_BlockingObjects: 0
98 | m_BlockingMask:
99 | serializedVersion: 2
100 | m_Bits: 4294967295
101 |
--------------------------------------------------------------------------------
/Assets/Prefabs/ItemCanvas.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 3683cb690c686d147a933828e657ee39
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Prefabs/TooltipPopup.prefab.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 599fc18ab47d2de4f944bc0b111cfb77
3 | PrefabImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Assets/Rarities.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 682faff30d134f34083cf3fa1e839f49
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/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: 931570338521e2f47bd71085d740e70c, type: 3}
13 | m_Name: Rarity_Epic
14 | m_EditorClassIdentifier:
15 | name: Epic
16 | textColour: {r: 0.73223996, g: 0.007843137, b: 0.94509804, a: 1}
17 |
--------------------------------------------------------------------------------
/Assets/Rarities/Rarity_Epic.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 35f08bce9e62807488cb1932e2a0174e
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/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: 931570338521e2f47bd71085d740e70c, type: 3}
13 | m_Name: Rarity_Rare
14 | m_EditorClassIdentifier:
15 | name: Rare
16 | textColour: {r: 0.007843137, g: 0.30301324, b: 0.94509804, a: 1}
17 |
--------------------------------------------------------------------------------
/Assets/Rarities/Rarity_Rare.asset.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: a5cfab54d6abfd242b0372b281eb602b
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 11400000
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scenes.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 090f5edd06a91b145bf806f34b98d1a7
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: 37c5e68c8c01c304aac3b4162edc687d
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Assets/Scripts/Consumable.cs:
--------------------------------------------------------------------------------
1 | using System.Text;
2 | using UnityEngine;
3 |
4 | namespace DapperDino.TooltipUI
5 | {
6 | [CreateAssetMenu(fileName = "New Consumable", menuName = "Items/Consumable")]
7 | public class Consumable : Item
8 | {
9 | [SerializeField] private Rarity rarity;
10 | [SerializeField] private string useText = "Something";
11 |
12 | public Rarity Rarity { get { return rarity; } }
13 |
14 | public override string ColouredName
15 | {
16 | get
17 | {
18 | string hexColour = ColorUtility.ToHtmlStringRGB(rarity.TextColour);
19 | return $"{Name}";
20 | }
21 | }
22 |
23 | public override string GetTooltipInfoText()
24 | {
25 | StringBuilder builder = new StringBuilder();
26 |
27 | builder.Append(Rarity.Name).AppendLine();
28 | builder.Append("Use: ").Append(useText).Append("").AppendLine();
29 | builder.Append("Sell Price: ").Append(SellPrice).Append(" Gold");
30 |
31 | return builder.ToString();
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/Assets/Scripts/Consumable.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7ed9f560f02ab2b4894d356dd3a10343
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/Item.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace DapperDino.TooltipUI
4 | {
5 | public abstract class Item : ScriptableObject
6 | {
7 | [SerializeField] private new string name;
8 | [SerializeField] private int sellPrice;
9 |
10 | public string Name { get { return name; } }
11 | public abstract string ColouredName { get; }
12 | public int SellPrice { get { return sellPrice; } }
13 |
14 | public abstract string GetTooltipInfoText();
15 | }
16 | }
--------------------------------------------------------------------------------
/Assets/Scripts/Item.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 15c4e74a2d1b8da42b8a5e741d3542c8
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/ItemButton.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using UnityEngine;
4 | using UnityEngine.EventSystems;
5 |
6 | namespace DapperDino.TooltipUI
7 | {
8 | public class ItemButton : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
9 | {
10 | [SerializeField] private TooltipPopup tooltipPopup;
11 | [SerializeField] private Item item;
12 |
13 | public void OnPointerEnter(PointerEventData eventData)
14 | {
15 | tooltipPopup.DisplayInfo(item);
16 | }
17 |
18 | public void OnPointerExit(PointerEventData eventData)
19 | {
20 | tooltipPopup.HideInfo();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/Assets/Scripts/ItemButton.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: b477e4a70f81bda42bb5ceb344346987
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/Rarity.cs:
--------------------------------------------------------------------------------
1 | using UnityEngine;
2 |
3 | namespace DapperDino.TooltipUI
4 | {
5 | [CreateAssetMenu]
6 | public class Rarity : ScriptableObject
7 | {
8 | [SerializeField] private new string name;
9 | [SerializeField] private Color textColour;
10 |
11 | public string Name { get { return name; } }
12 | public Color TextColour { get { return textColour; } }
13 | }
14 | }
--------------------------------------------------------------------------------
/Assets/Scripts/Rarity.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 931570338521e2f47bd71085d740e70c
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/TooltipPopup.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 | using System.Text;
4 | using TMPro;
5 | using UnityEngine;
6 | using UnityEngine.UI;
7 |
8 | namespace DapperDino.TooltipUI
9 | {
10 | public class TooltipPopup : MonoBehaviour
11 | {
12 | [SerializeField] private GameObject popupCanvasObject;
13 | [SerializeField] private RectTransform popupObject;
14 | [SerializeField] private TextMeshProUGUI infoText;
15 | [SerializeField] private Vector3 offset;
16 | [SerializeField] private float padding;
17 |
18 | private Canvas popupCanvas;
19 |
20 | private void Awake()
21 | {
22 | popupCanvas = popupCanvasObject.GetComponent