Esempio n. 1
0
 public InfStateChangeEvent(InfStateMachine <T> stateMachine)
 {
     Target             = stateMachine.Target;
     TargetStateMachine = stateMachine;
     NewState           = stateMachine.CurrentState;
     PreviousState      = stateMachine.PreviousState;
 }
Esempio 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);
 }