From 71c03c717b189ee0ff0e62d219f02b8ab336c40a Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 13 Oct 2020 17:20:14 +0800 Subject: +ability system --- Assets/Scripts/Input/CommandType.cs | 21 +++++++++++++++++++++ Assets/Scripts/Input/CommandType.cs.meta | 11 +++++++++++ Assets/Scripts/Input/InputManager.cs | 18 ++++++++++++++++++ Assets/Scripts/Input/InputManager.cs.meta | 11 +++++++++++ 4 files changed, 61 insertions(+) create mode 100644 Assets/Scripts/Input/CommandType.cs create mode 100644 Assets/Scripts/Input/CommandType.cs.meta create mode 100644 Assets/Scripts/Input/InputManager.cs create mode 100644 Assets/Scripts/Input/InputManager.cs.meta (limited to 'Assets/Scripts/Input') diff --git a/Assets/Scripts/Input/CommandType.cs b/Assets/Scripts/Input/CommandType.cs new file mode 100644 index 00000000..3c537383 --- /dev/null +++ b/Assets/Scripts/Input/CommandType.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + + +public enum Command +{ + // 方向键 + Left, + Right, + Top, + Bottom, + + // 操作键 + Triangle, // △ + Cross, // × + Square, // □ + Circle, // ○ +} + + diff --git a/Assets/Scripts/Input/CommandType.cs.meta b/Assets/Scripts/Input/CommandType.cs.meta new file mode 100644 index 00000000..f2802802 --- /dev/null +++ b/Assets/Scripts/Input/CommandType.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e105d6d96dd08e8499e6a4254d289e99 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Input/InputManager.cs b/Assets/Scripts/Input/InputManager.cs new file mode 100644 index 00000000..098190bc --- /dev/null +++ b/Assets/Scripts/Input/InputManager.cs @@ -0,0 +1,18 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class InputManager : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + + } +} diff --git a/Assets/Scripts/Input/InputManager.cs.meta b/Assets/Scripts/Input/InputManager.cs.meta new file mode 100644 index 00000000..234b6d17 --- /dev/null +++ b/Assets/Scripts/Input/InputManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 26195ae7cb9459e498256c387da7273e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: -- cgit v1.1-26-g67d0