コード例 #1
0
 public void Call(Framework.Scene param0)
 {
     func.BeginPCall();
     func.PushObject(param0);
     func.PCall();
     func.EndPCall();
 }
コード例 #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"));
        }
    }
コード例 #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"));
        }
    }
コード例 #4
0
    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"));
        }
    }
コード例 #5
0
 public Camera AquireMainCamera(Scene mainScene)
 {
     return(FindSceneCamera(mainScene, true));
 }
コード例 #6
0
 public Camera AquireLevelCamera(Scene mainScene)
 {
     return(FindSceneCamera(mainScene, false));
 }
コード例 #7
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     CurScene = null;
 }