summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Avatar/Actions/ActionJump.cs
blob: 364dd7de92e54ee6671a9e11d0c38ffe4790fad2 (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;

// 垂直跳跃,切换到jump state
public class ActionJump : ActionSwitchState
{
    private JumpState m_JumpState; 

    public ActionJump(StateController system, JumpState jumpState) 
        : base(system, jumpState)
    {
        m_JumpState = jumpState;
    }

    public override void Execute()
    {
        m_JumpState.SetDir(JumpState.Direction.Neutral);
        base.Execute();
    }
}