Aquaphobia spirits

This commit is contained in:
MindfulMinun committed 2022-02-25 06:49:01 -06:00
1 parent ee5e646f97
commit 25e34ae059
11 files changed
+1332 -33

No files matched your search

+18
View File
@@ -1,16 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class PlayerMovement : MonoBehaviour
{
public Movement controller;
public Animator animator;
public Health health;
public float runSpeed = 40f;
float horizontalMove = 0f;
bool jump = false;
bool crouch = false;
void Start() {
if (health != null) {
health.OnHit.AddListener(OnHit);
health.OnDead.AddListener(OnDead);
}
}
// Update is called once per frame
void Update() {
horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed;
@@ -60,4 +70,12 @@ public class PlayerMovement : MonoBehaviour
{
Debug.Log("Trigger Detected!");
}*/
void OnHit() {
Debug.Log("Hit Detected!");
}
void OnDead() {
Debug.Log("Fuck, I'm dead!");
}
}