Untitled
unknown
c_cpp
a year ago
198 B
6
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