public static void RegisterInputAction(PInput input, PInputType type, System.Action <float> action) { List <PlayerInputSender> inputListeners = senders.FindAll(o => o.InputType == input); if (inputListeners.Count > 0) { foreach (PlayerInputSender pis in inputListeners) { pis.setup(type, action); } } else { Debug.Log("No input senders of such type: " + input.ToString()); } }