回答編集履歴
2
サンプルの追記
test
CHANGED
@@ -21,3 +21,11 @@
|
|
21
21
|
1. [static変数](https://ufcpp.net/study/csharp/oo_static.html)
|
22
22
|
|
23
23
|
2. [Singletonパターン](https://qiita.com/calmbooks/items/9cf32c6dd36b724b155e)
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
## 追記
|
28
|
+
|
29
|
+
海外のフォーラムでstatic変数を用いた例がありました、参考にしてみてください
|
30
|
+
|
31
|
+
[https://answers.unity.com/questions/1275232/disable-all-inputs.html](https://answers.unity.com/questions/1275232/disable-all-inputs.html)
|
1
説明の追記
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
Unity側にはキーボード入力の受付を一時的に止めるということは基本的にできません
|
2
|
+
|
3
|
+
|
4
|
+
|
1
|
-
入力処理を複数スクリプトから行うというのはあまりよくない設計です
|
5
|
+
また入力処理を複数スクリプトから行うというのはあまりよくない設計です
|
2
6
|
|
3
7
|
今回のような問題も起きやすい上、
|
4
8
|
|