From a7fef946ffacb2927ddd59da133b88d86b752685 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 10 七月 2019 15:19:29 +0800
Subject: [PATCH] 3335 骑宠觉醒

---
 Core/SFX/SFXController.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/Core/SFX/SFXController.cs b/Core/SFX/SFXController.cs
index f812b6a..cc700f2 100644
--- a/Core/SFX/SFXController.cs
+++ b/Core/SFX/SFXController.cs
@@ -192,6 +192,22 @@
         }
     }
 
+    public void SetParticleEmissionRateOverTime(float value)
+    {
+        if (m_CacheParticleSystem != null)
+        {
+            ParticleSystem.EmissionModule _emissioinModule;
+            for (int i = 0; i < m_CacheParticleSystem.Length; ++i)
+            {
+                if (m_CacheParticleSystem[i])
+                {
+                    _emissioinModule = m_CacheParticleSystem[i].emission;
+                    _emissioinModule.rateOverTime = value;
+                }
+            }
+        }
+    }
+
     private void SetChildActive(Transform transforms, bool active)
     {
         for (int i = 0; i < transforms.childCount; ++i)

--
Gitblit v1.8.0