Exemple #1
0
        void OnDestroy()
        {
            MonoSingletoninterface singleton = _instance as MonoSingletoninterface;

            if (singleton != null)
            {
                singleton.MonoSingletoninterfaceOnUninitialize();
            }
            OnDestroyEx();
            _applicationIsPlaying = false;
            _instance             = null;
        }
Exemple #2
0
    static int MonoSingletoninterfaceOnUninitialize(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.MonoSingletoninterface.MonoSingletoninterfaceOnUninitialize");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 1);
            Framework.MonoSingletoninterface obj = (Framework.MonoSingletoninterface)ToLua.CheckObject <Framework.MonoSingletoninterface>(L, 1);
            obj.MonoSingletoninterfaceOnUninitialize();
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }