public void OnReceived(SpaceshipHitMessage spaceshipHitMessage) { if (gameState == GameState.InGame) { inGame.OnReceived(spaceshipHitMessage); } }
public void OnReceived(SpaceshipHitMessage spaceshipHitMessage) { Action action = () => { ProcessSpaceshipHitMessage(); }; ProcessAction(action); }