summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/ActionSwitchAbility.cs
blob: caa927c8c4e933d948abb0ff1e68514175d65ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()
	{
		m_StateController.SwitchToState(m_TargetState);
	}
}