From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../Scripts/Avatar/Actions/ActionSwitchAbility.cs | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs (limited to 'Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs') diff --git a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs b/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs deleted file mode 100644 index 890d1e66..00000000 --- a/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -// 基础的切换 state -public class ActionSwitchState : ActionBase -{ - StateController m_StateController; - StateBase m_TargetState; - - public ActionSwitchState(StateController stateSystem, StateBase targetState) - { - m_StateController = stateSystem; - m_TargetState = targetState; - } - - 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