摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class WaitTimeManager : MonoBehaviour 阅读全文
posted @ 2022-02-21 17:45 小帆敲代码 阅读(21) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Script_04_05 : MonoBehaviour { public static Script_04_05 阅读全文
posted @ 2022-02-21 17:12 小帆敲代码 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Unity会同时处理所有的物体:如,先执行所有物体的Awake方法。 阅读全文
posted @ 2022-02-21 16:29 小帆敲代码 阅读(21) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Script_04_04 : MonoBehaviour { IEnumerator CreateCube() { 阅读全文
posted @ 2022-02-21 15:02 小帆敲代码 阅读(26) 评论(0) 推荐(0) 编辑
摘要: public class Script_04_03 : MonoBehaviour { private void Awake() { Debug.Log("Awake用于初始化并且只会调用一次"); } private void OnEnable() { Debug.Log("OnEnable在脚本 阅读全文
posted @ 2022-02-21 14:47 小帆敲代码 阅读(36) 评论(0) 推荐(0) 编辑