private void SetupScene() { _mapController.CreateMap(); _inputController.OnRestart += Restart; #if UNITY_EDITOR _inputController.OnEscape += EditorApplication.ExitPlaymode; #endif _inputController.OnEscape += Application.platform == RuntimePlatform.WebGLPlayer ? (Action)Restart : Application.Quit; var tank = _tankController.CreteTank(_inputController, _mapController.GetPlayerSpawnPoint()); _enemyController.Initialize(_mapController.GetEnemySpawnPoints(), tank); }