TO SQUASH:

Added eye ball
This commit is contained in:
2026-08-04 21:23:39 -04:00
parent b3d28dd2c9
commit 7fcbd5a38a
18 changed files with 1375 additions and 9 deletions
+1 -7
View File
@@ -2,9 +2,7 @@ using UnityEngine;
public class NukeBall : MonoBehaviour
{
private Animator animator;
private static float gravity = 0.5f;
private Animator animator;
public AudioClip spawnSound;
@@ -28,8 +26,6 @@ private Animator animator;
private float height;
private float verticalVelocity = 0.0f;
private Collider2D selfCollider;
private bool isBouncingToHeight = false;
@@ -80,7 +76,6 @@ private Animator animator;
{
isBouncingToHeight = false;
bounceTimer = 0.0f;
verticalVelocity = 0.0f;
currentPosition.y = height;
UpdateFallTargetFromCurrentPosition();
}
@@ -137,7 +132,6 @@ private Animator animator;
bounceTimer = 0.0f;
bounceStartY = contact.point.y;
fallTargetY = bounceStartY;
verticalVelocity = 0.0f;
Vector3 currentPosition = transform.position;
currentPosition.y = bounceStartY;