blob: d735ef5b654aec82aefbe38eb7e9acf2d7010ef3 (
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;
}
}
|