Implemented unselecting dice selection
This commit is contained in:
parent
1b55b43f34
commit
31917ba415
5 changed files with 78 additions and 14 deletions
|
|
@ -32,7 +32,8 @@ public class Room : MonoBehaviour
|
|||
}
|
||||
|
||||
TextMeshProUGUI numberText = numberTextObject.GetComponent<TextMeshProUGUI>();
|
||||
|
||||
_roomNumberOriginalColor = gameObject.GetComponentInChildren<TextMeshProUGUI>().color;
|
||||
|
||||
if (keyType == KeyType.Number)
|
||||
{
|
||||
numberText.SetText(number.ToString());
|
||||
|
|
@ -52,7 +53,6 @@ public class Room : MonoBehaviour
|
|||
|
||||
public void HighlightRoomAsOption()
|
||||
{
|
||||
_roomNumberOriginalColor = gameObject.GetComponentInChildren<TextMeshProUGUI>().color;
|
||||
gameObject.GetComponentInChildren<TextMeshProUGUI>().color = Color.blue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue