Skip to content

Commit

Permalink
fix draugr wand and orb as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jpw1991 committed Oct 10, 2023
1 parent 3282156 commit 410b696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ChebsNecromancy/Items/Wands/DraugrWand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using Logger = Jotunn.Logger;
Expand Down Expand Up @@ -57,7 +58,7 @@ public enum MinionOption
private int _selectedMinionOptionIndex;
private MinionOption SelectedMinionOption => _minionOptions[_selectedMinionOptionIndex];

private Text _createMinionButtonText;
private TextMeshProUGUI _createMinionButtonText;

#endregion

Expand Down Expand Up @@ -203,7 +204,7 @@ public override bool HandleInputs()
var button = GameObject.Find(CreateMinionButton.Name);
if (button != null)
{
_createMinionButtonText = button.GetComponentInChildren<Text>();
_createMinionButtonText = button.GetComponentInChildren<TextMeshProUGUI>();
}
}

Expand Down
5 changes: 3 additions & 2 deletions ChebsNecromancy/Items/Wands/OrbOfBeckoning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using Jotunn.Configs;
using Jotunn.Entities;
using Jotunn.Managers;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using Logger = Jotunn.Logger;
Expand Down Expand Up @@ -46,7 +47,7 @@ public enum MinionOption
private int _selectedMinionOptionIndex;
private MinionOption SelectedMinionOption => _minionOptions[_selectedMinionOptionIndex];

private Text _createMinionButtonText;
private TextMeshProUGUI _createMinionButtonText;

#endregion

Expand Down Expand Up @@ -148,7 +149,7 @@ public override bool HandleInputs()
var button = GameObject.Find(CreateMinionButton.Name);
if (button != null)
{
_createMinionButtonText = button.GetComponentInChildren<Text>();
_createMinionButtonText = button.GetComponentInChildren<TextMeshProUGUI>();
}
}

Expand Down

0 comments on commit 410b696

Please sign in to comment.