TO SQUASH: Started nuke ball.
This commit is contained in:
@@ -23,14 +23,14 @@ public class FruitBall : MonoBehaviour
|
||||
{
|
||||
audioSource = GetComponent<AudioSource>();
|
||||
animator = GetComponent<Animator>();
|
||||
speed = new Vector2(Mathf.Sign(Random.Range(-1f, 1f)) * 0.0001f,
|
||||
Mathf.Sign(Random.Range(-1f, 1f)) * 0.0001f);
|
||||
speed = new Vector2(Mathf.Sign(Random.Range(-1f, 1f)) * 0.005f,
|
||||
Mathf.Sign(Random.Range(-1f, 1f)) * 0.005f);
|
||||
|
||||
audioSource.PlayOneShot(spawnSound);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
void FixedUpdate()
|
||||
{
|
||||
AnimatorStateInfo stateInfo = animator.GetCurrentAnimatorStateInfo(0);
|
||||
|
||||
@@ -61,7 +61,7 @@ public class FruitBall : MonoBehaviour
|
||||
collision.gameObject.CompareTag("FruitBall"))
|
||||
{
|
||||
speedIncreaseTimer = 2.0f; // Reset the timer to 2 seconds
|
||||
speedMultiplier = 50.0f; // Set the speed multiplier to 7x
|
||||
speedMultiplier = 20.0f; // Set the speed multiplier to 7x
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user