Пример #1
0
        /// <summary>
        /// 返回常规模式
        /// </summary>
        public void BackNomalEvent()
        {
            fadeMainCamera = 0;

            Camera.main.cullingMask = mainCamCullmask;
            mainCamCullmask         = 0;

            //UICamera.list[0].eventReceiverMask |= 1 << LayerMask.NameToLayer("UI");
            //CameraUtil.ShowLayerName(UICamera.list[0].cachedCamera, "UI", "UIModel");
            //CameraUtil.HideLayerName(UICamera.list[0].cachedCamera, "Plot");
            //UICamera.list[0].cachedCamera.depth -= 1;

            //SetSceneShadow(true);

            ////PanelManager panelMgr = AppFacade.Instance.GetManager<PanelManager>();
            ////panelMgr.ClearAllCutscenePanels();

            //SceneEntity mainRole = RoleManager.Instance.mainRole;
            //if (mainRole != null)
            //{
            //    mainRole.controller.CanMovePosition = true;
            //}

            SoundManager soundMgr = AppFacade.Instance.GetManager <SoundManager>();

            soundMgr.StopSound(SoundManager.SoundType.Story);
        }
Пример #2
0
 static int StopSound(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject <LuaFramework.SoundManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         obj.StopSound(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #3
0
    static int StopSound(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <string>(L, 2))
            {
                LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager));
                string arg0 = ToLua.ToString(L, 2);
                obj.StopSound(arg0);
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes <LuaFramework.SoundManager.SoundType>(L, 2))
            {
                LuaFramework.SoundManager           obj  = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager));
                LuaFramework.SoundManager.SoundType arg0 = (LuaFramework.SoundManager.SoundType)ToLua.ToObject(L, 2);
                obj.StopSound(arg0);
                return(0);
            }
            else if (count == 3)
            {
                LuaFramework.SoundManager obj = (LuaFramework.SoundManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.SoundManager));
                string arg0 = ToLua.CheckString(L, 2);
                int    arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
                obj.StopSound(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.SoundManager.StopSound"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }