示例#1
0
        public void AddInputHandler(Action callback, PlayerIndex playerIndex, params object[] inputs)
        {
            InputHandlerComponent inputHandlerComponent = new InputHandlerComponent(this, callback, playerIndex, inputs);

            Components.Add(inputHandlerComponent);
        }
示例#2
0
 public void AddInputHandler(Action callback, PlayerIndex playerIndex, params object[] inputs)
 {
     InputHandlerComponent inputHandlerComponent = new InputHandlerComponent(this, callback, playerIndex, inputs);
     Components.Add(inputHandlerComponent);
 }