fixed: tambourine ui resets properly on player death

This commit is contained in:
Sam
2023-05-01 16:53:13 -07:00
parent cc694586a4
commit 347b1a0b2c
4 changed files with 64 additions and 26 deletions

View File

@@ -55,4 +55,16 @@ public class GameUIController : MonoBehaviour
clarinetUI.GetComponent<Image>().enabled = toggleState;
}
}
public void ResetInstrumentUI() {
if (stateController.unlockedTrumpet) {
ToggleTrumpet(true);
}
if (stateController.unlockedTambourine) {
ToggleTambourine(true);
}
if (stateController.unlockedClarinet) {
ToggleClarinet(true);
}
}
}