Add more emotes to Fuki & Seiden heads

This commit is contained in:
MindfulMinun committed 2022-02-25 19:20:33 -06:00
1 parent ea2a88b5ea
commit 2a787789fa
29 files changed
+1366 -441

No files matched your search

+4 -7
View File
@@ -17,9 +17,7 @@ public class PlayerMovement : MonoBehaviour {
void Awake() {
if (health == null) {
Debug.Log("Health not found! Please attach the Health script to the player so the player can take damage.");
}
Debug.Log(health);
if (health != null) {
} else {
health.OnHit.AddListener(OnHit);
health.OnDead.AddListener(OnDead);
}
@@ -28,10 +26,6 @@ public class PlayerMovement : MonoBehaviour {
// Update is called once per frame
void Update() {
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
if (healthBarAnimator != null) {
healthBarAnimator.SetInteger("Health", health.currentHealth);
}
if (Input.GetButtonDown("Jump")) {
jump = true;
@@ -48,6 +42,9 @@ public class PlayerMovement : MonoBehaviour {
} else if (animator != null) {
animator.SetFloat("Horizontal", Input.GetAxis("Horizontal"));
animator.SetBool("Airborne", !controller.m_Grounded);
if (healthBarAnimator != null) {
healthBarAnimator.SetInteger("Health", health.currentHealth);
}
}
}
void FixedUpdate() {