update() public method

public update ( ) : void
return void
Ejemplo n.º 1
0
        void Update()
        {
#if PROFILE_FILE
            UnityEngine.Profiler.BeginSample("LuaSvrGameObject.Update 1");
#endif
            if (onUpdate != null)
            {
                onUpdate();
            }
#if PROFILE_FILE
            UnityEngine.Profiler.EndSample();
#endif

#if PROFILE_FILE
            UnityEngine.Profiler.BeginSample("LuaSvrGameObject.Update 2");
#endif
            if (di != null)
            {
                di.update();
            }
#if PROFILE_FILE
            UnityEngine.Profiler.EndSample();
#endif
        }