From d8df41b512178b70ccc03e4ba99a992d23d994e6 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期五, 05 七月 2019 16:38:59 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Fight/GameActor/GA_NpcFunc.cs | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/Fight/GameActor/GA_NpcFunc.cs b/Fight/GameActor/GA_NpcFunc.cs
index 4644789..95522c4 100644
--- a/Fight/GameActor/GA_NpcFunc.cs
+++ b/Fight/GameActor/GA_NpcFunc.cs
@@ -113,6 +113,8 @@
}
}
+ private SFXController m_ReikiEffect;
+
protected override void OnMainModelLoaded()
{
RequestMissionSign();
@@ -127,6 +129,7 @@
int _secondaryId = _ids.Length > 1 ? int.Parse(_ids[1]) : -1;
int _horseId = _ids.Length > 2 ? int.Parse(_ids[2]) : -1;
int _wingId = _ids.Length > 3 ? int.Parse(_ids[3]) : -1;
+ int _reikiId = _ids.Length > 4 ? int.Parse(_ids[4]) : -1;
// Debug.LogFormat("weapon: {0}, secondary: {1}, horse: {2}, wing: {3}", _weaponId, _secondaryId, _horseId, _weaponId);
@@ -148,6 +151,17 @@
if (_horseId > 0)
{
SetEquipHorse(_horseId);
+ }
+
+ if (ReikiRootEffectConfig.Has(_reikiId))
+ {
+ if (m_ReikiEffect)
+ {
+ SFXPlayUtility.Instance.Release(m_ReikiEffect);
+ m_ReikiEffect = null;
+ }
+ var _config = ReikiRootEffectConfig.Get(_reikiId);
+ m_ReikiEffect = SFXPlayUtility.Instance.PlayBattleEffect(_config.effect, Root, 1);
}
}
@@ -335,6 +349,12 @@
protected override void OnUnit()
{
+ if (m_ReikiEffect)
+ {
+ SFXPlayUtility.Instance.Release(m_ReikiEffect);
+ m_ReikiEffect = null;
+ }
+
if (m_WeaponModel)
{
var _prefab = InstanceResourcesLoader.LoadModelRes(m_WeaponID);
--
Gitblit v1.8.0