FIXED BROKEN COMMIT
for whatever reason the player animator was not being accessed, this should fix it
This commit is contained in:
@@ -49,7 +49,7 @@ public class PlayerBehavior : MonoBehaviour
|
||||
audioSource.clip = footstepSound;
|
||||
audioSource.loop = true;
|
||||
|
||||
animator = GetComponent<Animator>();
|
||||
animator = this.gameObject.GetComponent<Animator>();
|
||||
GameObject.Find("Main Camera").GetComponent<CameraMovement>().player = this.gameObject;
|
||||
playerIsAlive = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user