UnityEngine.ParticleSystem.Pause C# (CSharp) Method

Pause() public method

public Pause ( [ withChildren ) : void
withChildren [
return void
        public void Pause([DefaultValue("true")] bool withChildren)
        {
            if (withChildren)
            {
                foreach (ParticleSystem system in GetParticleSystems(this))
                {
                    system.Internal_Pause();
                }
            }
            else
            {
                this.Internal_Pause();
            }
        }

Same methods

ParticleSystem::Pause ( ) : void
ParticleSystem::Pause ( bool withChildren ) : void

Usage Example

コード例 #1
0
        static int _m_Pause(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.ParticleSystem __cl_gen_to_be_invoked = (UnityEngine.ParticleSystem)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 1)
                {
                    __cl_gen_to_be_invoked.Pause(  );



                    return(0);
                }
                if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool withChildren = LuaAPI.lua_toboolean(L, 2);

                    __cl_gen_to_be_invoked.Pause(withChildren);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.ParticleSystem.Pause!"));
        }
All Usage Examples Of UnityEngine.ParticleSystem::Pause