diff --git a/Assets/Scripts/BulletScript.cs b/Assets/Scripts/BulletScript.cs index fc0f076..f469a94 100644 --- a/Assets/Scripts/BulletScript.cs +++ b/Assets/Scripts/BulletScript.cs @@ -4,13 +4,14 @@ using UnityEngine; public class BulletScript : MonoBehaviour { - public float speed; - + + private float speed; private Rigidbody2D rb; void Start() { rb = GetComponent(); + speed = Random.Range(3.0f, 8.0f); } void FixedUpdate()