fix: first clicks now are properly detected
This commit is contained in:
parent
db839ea96d
commit
2cddb7a7b9
13 changed files with 99 additions and 30 deletions
16
Assets/Scripts/View/Collections/InputCallbackCollection.cs
Normal file
16
Assets/Scripts/View/Collections/InputCallbackCollection.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Presenter;
|
||||
|
||||
namespace View.Collections {
|
||||
public class InputCallbackCollection : IInputCallback {
|
||||
private readonly IInputCallback[] _inputs;
|
||||
|
||||
public InputCallbackCollection(IInputCallback[] inputs) {
|
||||
_inputs = inputs;
|
||||
}
|
||||
|
||||
public void OnInputReceived() {
|
||||
foreach (IInputCallback input in _inputs)
|
||||
input.OnInputReceived();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue