ACTUALLY FIXED BROKEN COMMIT
pull this one!
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user