public void OnReceived(SpaceshipDestroyedMessage spaceshipDestroyedMessage) { if (gameState == GameState.InGame) { inGame.OnReceived(spaceshipDestroyedMessage); } }
public void OnReceived(SpaceshipDestroyedMessage spaceshipDestroyedMessage) { var fix = spaceshipDestroyedMessage.Fix.Value; Action action = () => { ProcessSpaceshipDestroyedMessage(fix.Owner); }; ProcessAction(action); }