using System.Collections; using System.Collections.Generic; using UnityEngine; using MontanaJohns.Actors; public class Projectile : MonoBehaviour { public float speed = 60f; public Rigidbody2D rb; // Start is called before the first frame update void Start() { rb.velocity = transform.right * speed; } private void OnCollisionEnter2D(Collision2D collision) { Destroy(gameObject); } }