摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class TransformHelper : MonoBehaviour { //在层级未知的时候查找子物体 // publi 阅读全文
posted @ 2020-06-14 22:08 Faker_fan 阅读(209) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class OpenDoor : MonoBehaviour { public string animName="Door"; 阅读全文
posted @ 2020-06-14 22:06 Faker_fan 阅读(1548) 评论(0) 推荐(0) 编辑
摘要: 找父物体: transform.parent.gameObject 距上次渲染帧的时间:Time.deltaTime; 受缩放影响的游戏运行时间:Time.time; 受缩放影响的游戏运行时间:Time.unscaledTime; 实际运行时间:Time.realtimeSinceStartup; 阅读全文
posted @ 2020-06-14 22:05 Faker_fan 阅读(108) 评论(0) 推荐(0) 编辑