Skip to content

Commit

Permalink
Merge branch 'UpdatedLeaderboardLogic' of https://github.com/Gamify-I…
Browse files Browse the repository at this point in the history
…T/overworld into UpdatedLeaderboardLogic
  • Loading branch information
Duyguoe committed Nov 19, 2024
2 parents a96f000 + c7a06d7 commit 739c5b7
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 0 deletions.
138 changes: 138 additions & 0 deletions Assets/Scenes/Player HUD/Character Selection.unity

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/HUD/CharacterSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class CharacterSelection : MonoBehaviour
[SerializeField] private Button previousButton;
[SerializeField] private Button nextButton;
[SerializeField] private AudioClip clickSound;
[SerializeField] private TextMeshProUGUI confirmText;

public Button glassesButton;
public Button hatButton;
Expand Down Expand Up @@ -508,6 +509,8 @@ public void ConfirmButton()
}
else
{
confirmText.enabled = true;
Invoke("DisableConfirmMessage", 10);
ChangeMinimapFace();

animationScript.SetOutfitAnimator(selectedBody, selectedHead);
Expand All @@ -521,6 +524,11 @@ public void ConfirmButton()
}
}

private void DisableConfirmMessage()
{
confirmText.enabled = false;
}

public void ChangeMinimapFace() {
switch (currentIndex)
{
Expand Down

0 comments on commit 739c5b7

Please sign in to comment.