TO SQUASH: Added shooting bars.

This commit is contained in:
2026-08-05 01:23:47 -04:00
parent 2c7e02887c
commit c91a405227
30 changed files with 7987 additions and 98 deletions
+3 -13
View File
@@ -1,19 +1,7 @@
using UnityEngine;
public class EyeBall : MonoBehaviour
public class EyeBall : BallBase
{
private Animator animator;
public AudioClip spawnSound;
public AudioClip bounceSound;
public AudioClip hitSound;
private AudioSource audioSource;
private Vector2 speed;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
@@ -29,6 +17,8 @@ public class EyeBall : MonoBehaviour
{
AnimatorStateInfo stateInfo = animator.GetCurrentAnimatorStateInfo(0);
// TODO: Adjust eye ball direction based on the player's bar if active.
if (stateInfo.IsName("EyeBallMove")) {
transform.Translate(speed);
}