19/04/27 01:17:14.89 w4fC/pN8.net
>>703
public class ExampleClass : MonoBehaviour
{
public Rigidbody rb;
void Star()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
if (Input.GetButtonDown("Jump"))
rb.velocity = new Vector3(0, 10, 0);
}
}
void OnCollisionEnter (Collision col)
{
}