예제 #1
0
        IEnumerator Start()
        {
            if (!GameConst.DebugMode)
            {
                yield return(res.ReadyLuaFiles());
            }
            yield return(StartGame());

            GameAsset.LoadSceneSingle("Test", () =>
            {
                Debug.Log("GameAsset.LoadSceneSingle");
            });
        }
예제 #2
0
 static int LoadSceneSingle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         string        arg0 = ToLua.CheckString(L, 1);
         System.Action arg1 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 2);
         GameAsset.LoadSceneSingle(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }