FIXED BROKEN COMMIT

for whatever reason the player animator was not being accessed, this should fix it
This commit is contained in:
Sam 2023-05-01 16:59:51 -07:00
parent 347b1a0b2c
commit 071a9b43d4
2 changed files with 1 additions and 1 deletions

BIN
Assets/.DS_Store vendored

Binary file not shown.

View File

@ -49,7 +49,7 @@ public class PlayerBehavior : MonoBehaviour
audioSource.clip = footstepSound; audioSource.clip = footstepSound;
audioSource.loop = true; audioSource.loop = true;
animator = GetComponent<Animator>(); animator = this.gameObject.GetComponent<Animator>();
GameObject.Find("Main Camera").GetComponent<CameraMovement>().player = this.gameObject; GameObject.Find("Main Camera").GetComponent<CameraMovement>().player = this.gameObject;
playerIsAlive = true; playerIsAlive = true;
} }