blob: 89327951ccbc4f984c46d69ade9bce1abbabe9e3 (
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
{
StateSystem m_StateSystem;
StateBase m_TargetState;
public ActionSwitchState(StateSystem stateSystem, StateBase targetState)
{
m_StateSystem = stateSystem;
m_TargetState = targetState;
}
public override void Execute()
{
m_StateSystem.SwitchToState(m_TargetState);
}
}
|