摘要: public class CubeLogic : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Upd 阅读全文
posted @ 2024-07-15 21:10 暖暖De幸福 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 当 GameObject 要访问其它对象上的组件时,有下面两种方法 方法一(推荐) public class MainLogic : MonoBehaviour { public AudioSource bgm; // Start is called before the first frame u 阅读全文
posted @ 2024-07-15 20:34 暖暖De幸福 阅读(2) 评论(0) 推荐(0) 编辑