摘要:
对2d物体施加一个y方向的力rigibody2d rg rg.addForce(new vector2(0,100f)) 可以自己填入数值,也可以使用默认的方向 vector.left vector.right vector.up vector.down 物体的四个方向移动,但是斜向速度会把两个方向 阅读全文
摘要:
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AI : MonoBehaviour {undefined public GameObject player; pu 阅读全文