SiKi学院入门课程打砖块,适用没学习过unity的新手熟悉unity。
视频传送门 Unity零基础入门 - 打砖块
视频主要代码:
- 子弹组件代码
public class shoot : MonoBehaviour {
public GameObject bullet;
public float speed = 5;
void Start () {
// Debug.Log("====");
// GameObject.Instantiate(bullet,transform.position,transfo