public void UnregisterInputReceiver(MonoBehaviourUserInput userInput) { var key = this.registeredUserInputs.First(item => item.Value == userInput).Key; this.registeredUserInputs.Remove(key); }
public void RegisterInputReceiver(MonoBehaviourUserInput input) { this.registeredUserInputs.Add(new PrioritySortingKey(input.priority, input.creationTime), input); }