From 852d0ae1e09bc83215d73cdd1387e30b9191ea21 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期四, 11 四月 2019 21:31:00 +0800
Subject: [PATCH] 382 增加进入技能释放状态的事件回调
---
Fight/Actor/State/SMB/STM_BaseAttack.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Fight/Actor/State/SMB/STM_BaseAttack.cs b/Fight/Actor/State/SMB/STM_BaseAttack.cs
index decfeaf..a362f6c 100644
--- a/Fight/Actor/State/SMB/STM_BaseAttack.cs
+++ b/Fight/Actor/State/SMB/STM_BaseAttack.cs
@@ -125,6 +125,8 @@
if (owner.ServerInstID == PlayerDatas.Instance.PlayerId)
{
+ GA_Hero.CallOnStateEnter(animator.GetCurrentAnimatorClipInfo(0).Length);
+
if (owner.State == E_ActorState.AutoRun)
{
owner.StopPathFind();
@@ -153,6 +155,8 @@
{
HeadUpSkillName.Popup(cacheSkillID, owner.Root.position, CameraController.Instance.CameraObject);
}
+
+
}
if (_player is GA_Player)
@@ -247,6 +251,11 @@
if (owner.ActorType == GameObjType.gotPlayer)
{
+ if (owner is GA_Hero)
+ {
+ GA_Hero.CallOnStateEnd();
+ }
+
GActorPlayerBase _player = owner as GActorPlayerBase;
if (_player != null)
{
--
Gitblit v1.8.0