ACTUALLY FIXED BROKEN COMMIT

pull this one!
This commit is contained in:
Sam
2023-05-01 17:30:54 -07:00
parent 071a9b43d4
commit fc8c2e6062
2 changed files with 14 additions and 4 deletions

View File

@@ -37,13 +37,12 @@ public class PlayerBehavior : MonoBehaviour
AudioSource audioSource;
void Start()
void Awake()
{ // initialize
_rb = GetComponent<Rigidbody2D>();
stateController = GameObject.Find("StateController").GetComponent<StateController>();
gameUI = GameObject.FindGameObjectWithTag("GameUICanvas").GetComponent<GameUIController>();
gameUI.ResetInstrumentUI();
audioSource = this.gameObject.GetComponent<AudioSource>();
audioSource.clip = footstepSound;
@@ -54,6 +53,10 @@ public class PlayerBehavior : MonoBehaviour
playerIsAlive = true;
}
void Start() {
gameUI.ResetInstrumentUI();
}
void Update()
{
unlockedTambourine = stateController.unlockedTambourine;