TO SQUASH:
Added eye ball
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user