Update() public method

Rectangles need to update in a specific order -- parents before children. When deriving from this class, override its OnUpdate() function instead.
public Update ( ) : void
return void
Beispiel #1
0
    static int Update(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIRect obj = (UIRect)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIRect");

        obj.Update();
        return(0);
    }
Beispiel #2
0
    static int Update(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIRect obj = LuaScriptMgr.GetNetObject <UIRect>(L, 1);

        obj.Update();
        return(0);
    }
Beispiel #3
0
 static public int Update(IntPtr l)
 {
     try {
         UIRect self = (UIRect)checkSelf(l);
         self.Update();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Update(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIRect obj = (UIRect)ToLua.CheckObject <UIRect>(L, 1);
         obj.Update();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
    private static int Update(IntPtr L)
    {
        int result;

        try
        {
            ToLua.CheckArgsCount(L, 1);
            UIRect uIRect = (UIRect)ToLua.CheckObject(L, 1, typeof(UIRect));
            uIRect.Update();
            result = 0;
        }
        catch (Exception e)
        {
            result = LuaDLL.toluaL_exception(L, e, null);
        }
        return(result);
    }
Beispiel #6
0
    private void LateUpdate()
    {
#if !UNITY_EDITOR
        try
        {
#endif
        //         if (ChangeSceneList.Count > 0 && ChangeScenestate == eChangeSceneState.Finished)
        //         {
        //             Action act = ChangeSceneList.Dequeue();
        //             act();
        //         }

        Profiler.BeginSample("UIRect.Update()");
        UIRect.Update();
        Profiler.EndSample();

#if !UNITY_EDITOR
    }
    catch (Exception ex)
    {
        Logger.Error(ex.ToString());
    }
#endif
    }