对于editorWindow,Time.deltaTime不起作用,所以需用下面方法对update进行计时: public class myEditorWindow : EditorWindow{ public float m_lastUpdateTime=0; public myEditorWindow(){ wantsMouseMove = true; } public void Update(float dt){ //to do } private void Updat
这个机制的加入 比 AS3好了很多 AS3的EnterFrame相当于UNITY的Update 但是FLASH做不了也是因为浏览器的限制吧! Here's how the fixed time step is calculated. Before every frame is drawn onscreen, Unity advances the fixed time by fixed delta time and performs physics calculations until it re
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class MainUIControl : MonoBehaviour { private static MainUIControl _instance; public static MainUIControl instance { get { return _instance; }