- 最后登录
- 2021-7-6
- 注册时间
- 2012-12-27
- 阅读权限
- 90
- 积分
- 76145
 
- 纳金币
- 53488
- 精华
- 316
|
小球自由落体 点击小球 小球弹起- using UnityEngine;
- using System.Collections;
- public class sadawd : MonoBehaviour {
-
- // Use this for initialization
- void Start () {
-
-
- }
-
- // Update is called once per frame
- void Update () {
- if (Input.GetMouseButtonDown(0))
- {
- rigidbody.AddForce(new Vector3(0, 1, 0) * 100f);
- }
- }
- }
复制代码 |
|