blob: 7649af58c63d7b15f37168a43eb88fed2e9d9f77 (
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
35
36
|
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 int id;
public Command(CommandCode code, float time)
{
this.code = code;
this.time = time;
this.id = UIDManager.Acquire();
}
}
|