diff options
author | chai <chaifix@163.com> | 2021-09-28 19:12:34 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-09-28 19:12:34 +0800 |
commit | 16e4a47beaf7786b63404d4a8356e45d70a393b5 (patch) | |
tree | 15391f9e57cb8d39705bfc13189956262e9e7fe7 /Assets/Scripts/Unit/Components | |
parent | 10ea61d63a87931a98c3591735f0d70e10939401 (diff) |
*unit lens
Diffstat (limited to 'Assets/Scripts/Unit/Components')
-rw-r--r-- | Assets/Scripts/Unit/Components/UnitLensEffect.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitLensEffect.cs b/Assets/Scripts/Unit/Components/UnitLensEffect.cs index f9d22a85..5a68faf8 100644 --- a/Assets/Scripts/Unit/Components/UnitLensEffect.cs +++ b/Assets/Scripts/Unit/Components/UnitLensEffect.cs @@ -99,6 +99,8 @@ public class UnitLensEffect : UnitComponent continue;
eff.owner = owner;
method.Invoke(eff, new object[] { LensEffectBase.EStage.Before, cb.Value });
+
+ // iterate unit renderers
for (int j = 0; j < body.renderers.Length; ++j)
{
var renderer = body.renderers[j];
@@ -107,6 +109,7 @@ public class UnitLensEffect : UnitComponent eff.curBodypartRenderer = renderer;
method.Invoke(eff, new object[] { LensEffectBase.EStage.Iterate, cb.Value });
}
+
method.Invoke(eff, new object[] { LensEffectBase.EStage.After, cb.Value });
} MainCamera.Instance.camera.AddCommandBuffer(ce, cb.Value); |