summaryrefslogtreecommitdiff
path: root/Assets/Scripts/AbilitySystem/Conditions/ConditionCommand.cs
blob: a7487d33ed646e32560f48bb7546deba8d4bb008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 按下某个command
/// </summary>
public class ConditionCommand : ConditionBase
{
	CommandCode m_TargetCommand;

    public ConditionCommand(CommandCode command)
    {
        m_TargetCommand = command;
    }

    public override bool Evaluate()
    {
		return InputManager.Instance.CurrentCommand.code == m_TargetCommand;
    }

}