public void Call(Framework.Scene param0)
 {
     func.BeginPCall();
     func.PushObject(param0);
     func.PCall();
     func.EndPCall();
 }
Example #2
0
    static int set_CurScene(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.SceneMgr obj  = (Framework.SceneMgr)o;
            Framework.Scene    arg0 = (Framework.Scene)ToLua.CheckObject <Framework.Scene>(L, 2);
            obj.CurScene = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CurScene on a nil value"));
        }
    }
Example #3
0
    static int get_CurScene(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.SceneMgr obj = (Framework.SceneMgr)o;
            Framework.Scene    ret = obj.CurScene;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CurScene on a nil value"));
        }
    }
    static int get_CurScene(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.SceneMgr.CurScene");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Framework.SceneMgr obj = (Framework.SceneMgr)o;
            Framework.Scene    ret = obj.CurScene;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index CurScene on a nil value"));
        }
    }
Example #5
0
 public Camera AquireMainCamera(Scene mainScene)
 {
     return(FindSceneCamera(mainScene, true));
 }
Example #6
0
 public Camera AquireLevelCamera(Scene mainScene)
 {
     return(FindSceneCamera(mainScene, false));
 }
Example #7
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     CurScene = null;
 }