Untitled
Anonymous
c_cpp
01/05/2025 1:19 PM
264 B
11
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