回答編集履歴
2
サンプルの追記
answer
CHANGED
@@ -9,4 +9,8 @@
|
|
9
9
|
|
10
10
|
そういった仕組みの例
|
11
11
|
1. [static変数](https://ufcpp.net/study/csharp/oo_static.html)
|
12
|
-
2. [Singletonパターン](https://qiita.com/calmbooks/items/9cf32c6dd36b724b155e)
|
12
|
+
2. [Singletonパターン](https://qiita.com/calmbooks/items/9cf32c6dd36b724b155e)
|
13
|
+
|
14
|
+
## 追記
|
15
|
+
海外のフォーラムでstatic変数を用いた例がありました、参考にしてみてください
|
16
|
+
[https://answers.unity.com/questions/1275232/disable-all-inputs.html](https://answers.unity.com/questions/1275232/disable-all-inputs.html)
|
1
説明の追記
answer
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
Unity側にはキーボード入力の受付を一時的に止めるということは基本的にできません
|
2
|
+
|
1
|
-
入力処理を複数スクリプトから行うというのはあまりよくない設計です
|
3
|
+
また入力処理を複数スクリプトから行うというのはあまりよくない設計です
|
2
4
|
今回のような問題も起きやすい上、
|
3
5
|
規模が大きくなってきたときに複数個所に入力処理があると追跡が困難になる等々拡張性に欠ける為です
|
4
6
|
|