unity3d 22
来源:互联网 发布:徐贲 知乎 编辑:程序博客网 时间:2024/05/22 00:37
Time控件
using UnityEngine;using System.Collections;public class time_control : MonoBehaviour {// Use this for initializationvoid Start () {}// Update is called once per framevoid Update () {}void OnGUI(){GUILayout.Label ("now time:" + Time.time);GUILayout.Label ("last frame cost time:" + Time.deltaTime);GUILayout.Label ("static increment time:" + Time.fixedTime);GUILayout.Label ("last frame cost static increment time: " + Time.fixedDeltaTime);}}
等待
using UnityEngine;using System.Collections;public class TimeWait_test : MonoBehaviour {// Use this for initializationIEnumerator Start(){return Test ();}// Update is called once per framevoid Update () {}IEnumerator Test(){Debug.Log ("start waiting:" + Time.time);//让本程序等待一段时间 和其它脚本无关 系统运行时间也不受影响yield return new WaitForSeconds (6);Debug.Log ("end waitiing:" + Time.time);}}
0 0
- unity3d 22
- Unity3D
- Unity3D
- Unity3D
- Unity3D
- unity3d
- Unity3D
- Unity3D
- Unity3D
- UNITY3D
- Unity3D
- unity3d
- unity3D
- Unity3D
- Unity3d
- Unity3D
- unity3D
- unity3D
- java复制文件的4种方式
- 学习笔记之——实现Android控件之带有分割线的GridView格
- Mysql主从配置,实现读写分离
- RTP协议的报文头格式结构
- 一段Golang代码引发的思考
- unity3d 22
- unity手动静态批处理
- 通过反射获取实体集合属性值并赋值给另一个实体集合
- C++ Primer 5th Edition 笔记
- 如何科学的操作git ignore
- There is no Action mapped for namespace /base and action name
- java中Date的格式注意事项
- unity3d各种OpenFileDialog操作
- HDU 5791 Two (DP)