summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Input/Command.cs
blob: 5ac2c2a0159546220c7abfc4ffd1db28eebbdd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public enum CommandCode
{
	Blank,

    // 方向键
    Left,
    Right,
    Up,
    Down,

    // 操作键
    Triangle, // △
    Cross,    // ×
    Square,   // □
    Circle,   // ○
}

public struct Command
{
	public CommandCode code; // 指令码
	public float time;       // 触发时间

	public Command(CommandCode code, float time)
	{
		this.code = code;
		this.time = time;
	}
}