FIXED BROKEN COMMIT
for whatever reason the player animator was not being accessed, this should fix it
This commit is contained in:
parent
347b1a0b2c
commit
071a9b43d4
BIN
Assets/.DS_Store
vendored
BIN
Assets/.DS_Store
vendored
Binary file not shown.
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user