Untitled

 avatar
unknown
c_cpp
2 months ago
198 B
3
Indexable
public class Bullet : MonoBehaviour
{
    public float speed = 20f;

    void Start()
    {
        Rigidbody2D rb = GetComponent<Rigidbody2D>();
        rb.velocity = transform.up * speed;
    }
}
Editor is loading...
Leave a Comment