private static ModuleUI[] CreateUIModules(ParticleSystemUI e, SerializedObject so) { int num = 0; ModuleUI[] euiArray1 = new ModuleUI[0x16]; euiArray1[0] = new InitialModuleUI(e, so, s_ModuleNames[num++]); euiArray1[1] = new EmissionModuleUI(e, so, s_ModuleNames[num++]); euiArray1[2] = new ShapeModuleUI(e, so, s_ModuleNames[num++]); euiArray1[3] = new VelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[4] = new ClampVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[5] = new InheritVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[6] = new ForceModuleUI(e, so, s_ModuleNames[num++]); euiArray1[7] = new ColorModuleUI(e, so, s_ModuleNames[num++]); euiArray1[8] = new ColorByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[9] = new SizeModuleUI(e, so, s_ModuleNames[num++]); euiArray1[10] = new SizeByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[11] = new RotationModuleUI(e, so, s_ModuleNames[num++]); euiArray1[12] = new RotationByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[13] = new ExternalForcesModuleUI(e, so, s_ModuleNames[num++]); euiArray1[14] = new NoiseModuleUI(e, so, s_ModuleNames[num++]); euiArray1[15] = new CollisionModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x10] = new TriggerModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x11] = new SubModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x12] = new UVModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x13] = new LightsModuleUI(e, so, s_ModuleNames[num++]); euiArray1[20] = new TrailModuleUI(e, so, s_ModuleNames[num++]); return(euiArray1); }
private static ModuleUI[] CreateUIModules(ParticleSystemUI e, SerializedObject so) { int num = 0; ModuleUI[] expr_0A = new ModuleUI[22]; expr_0A[0] = new InitialModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[1] = new EmissionModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[2] = new ShapeModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[3] = new VelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[4] = new ClampVelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[5] = new InheritVelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[6] = new ForceModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[7] = new ColorModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[8] = new ColorByVelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[9] = new SizeModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[10] = new SizeByVelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[11] = new RotationModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[12] = new RotationByVelocityModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[13] = new ExternalForcesModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[14] = new NoiseModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[15] = new CollisionModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[16] = new TriggerModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[17] = new SubModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[18] = new UVModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[19] = new LightsModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); expr_0A[20] = new TrailModuleUI(e, so, ParticleSystemUI.s_ModuleNames[num++]); return(expr_0A); }
private static ModuleUI[] CreateUIModules(ParticleSystemUI e, SerializedObject so) { int num = 0; ModuleUI[] euiArray1 = new ModuleUI[0x16]; euiArray1[0] = new InitialModuleUI(e, so, s_ModuleNames[num++]); euiArray1[1] = new EmissionModuleUI(e, so, s_ModuleNames[num++]); euiArray1[2] = new ShapeModuleUI(e, so, s_ModuleNames[num++]); euiArray1[3] = new VelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[4] = new ClampVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[5] = new InheritVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[6] = new ForceModuleUI(e, so, s_ModuleNames[num++]); euiArray1[7] = new ColorModuleUI(e, so, s_ModuleNames[num++]); euiArray1[8] = new ColorByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[9] = new SizeModuleUI(e, so, s_ModuleNames[num++]); euiArray1[10] = new SizeByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[11] = new RotationModuleUI(e, so, s_ModuleNames[num++]); euiArray1[12] = new RotationByVelocityModuleUI(e, so, s_ModuleNames[num++]); euiArray1[13] = new ExternalForcesModuleUI(e, so, s_ModuleNames[num++]); euiArray1[14] = new NoiseModuleUI(e, so, s_ModuleNames[num++]); euiArray1[15] = new CollisionModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x10] = new TriggerModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x11] = new SubModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x12] = new UVModuleUI(e, so, s_ModuleNames[num++]); euiArray1[0x13] = new LightsModuleUI(e, so, s_ModuleNames[num++]); euiArray1[20] = new TrailModuleUI(e, so, s_ModuleNames[num++]); return euiArray1; }