From 37b2c83f0ed383374ca6d9dcdf4d7111f2731367 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 18 Nov 2020 09:13:16 +0800 Subject: *misc --- Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs') diff --git a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs b/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs index caa927c8..890d1e66 100644 --- a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs +++ b/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs @@ -1,4 +1,6 @@ -using System.Collections; +using System; +using System.Reflection; +using System.Collections; using System.Collections.Generic; using UnityEngine; @@ -16,6 +18,12 @@ public class ActionSwitchState : ActionBase public override void Execute() { +#if UNITY_EDITOR + string thsName = m_StateController.Current.GetType().FullName; + string clsName = m_TargetState.GetType().FullName; + Debug.Log(thsName + " -> " + clsName); +#endif + m_StateController.SwitchToState(m_TargetState); } } -- cgit v1.1-26-g67d0