Ejemplo n.º 1
0
        private void GameForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            timer.Stop();

            ClientEngine.StopGame();
            ClientEngine.OnMapChanged -= OnMapChangeHandler;
            ClientEngine.OnTankDeath  -= OnTankDeath;
            ClientEngine.OnError      -= ErrorHandler;

            onMapChanged   -= onMapChangedProc;
            DeathAnimation -= onDeathAnimation;


            ClientEngine.onGameStart -= OnGameStart;
            ClientEngine.onDeath     -= onDeath;
            ClientEngine.onEndGame   -= OnEndGame;

            ClientEngine = null;
            Map          = null;
        }