blob: 46ce602fbc231c5abb91c23d2ff65285faabd5ea (
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
{
GamepadButton m_TargetCommand;
public ConditionCommand(GamepadButton command)
{
m_TargetCommand = command;
}
public override bool Evaluate()
{
return _InputManager.Instance.CurrentCommand.code == m_TargetCommand;
}
}
|