1
This commit is contained in:
@@ -57,17 +57,16 @@ namespace BITKit
|
||||
private void Init()
|
||||
{
|
||||
if (allowGlobalActivation)
|
||||
BITInputSystem.AllowInput.AddListener(Listen);
|
||||
allowInput.AddListener(Allow);
|
||||
BITInputSystem.AllowInput.AddListener(ListenGlobalInput);
|
||||
allowInput.AddListener(AllowInput);
|
||||
}
|
||||
|
||||
private void Listen(bool allowInput)
|
||||
private void ListenGlobalInput(bool allowInput)
|
||||
{
|
||||
this.allowInput.SetElements(lockFile, allowInput);
|
||||
this.allowInput.SetDisableElements(lockFile, !allowInput);
|
||||
}
|
||||
|
||||
private void Allow(bool allow)
|
||||
private void AllowInput(bool allow)
|
||||
{
|
||||
foreach (var action in actions)
|
||||
{
|
||||
@@ -80,7 +79,6 @@ namespace BITKit
|
||||
action.Disable();
|
||||
}
|
||||
}
|
||||
|
||||
isEnabled = allow;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user