Exemplo n.º 1
0
 public InfStateChangeEvent(InfStateMachine <T> stateMachine)
 {
     Target             = stateMachine.Target;
     TargetStateMachine = stateMachine;
     NewState           = stateMachine.CurrentState;
     PreviousState      = stateMachine.PreviousState;
 }
Exemplo n.º 2
0
 public IInfButton(string playerID, string buttonID, ButtonDownMethodDelegate btnDown, ButtonPressedMethodDelegate btnPressed, ButtonUpMethodDelegate btnUp)
 {
     ButtonID            = playerID + "_" + buttonID;
     ButtonDownMethod    = btnDown;
     ButtonUpMethod      = btnUp;
     ButtonPressedMethod = btnPressed;
     State = new InfStateMachine <InfInput.ButtonStates> (null, false);
     State.ChangeState(InfInput.ButtonStates.Off);
 }