Namespace: DeltaEngine.Scenes
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: Breakout.Tests.GameTests
1 unit tests call DeltaEngine.Scenes.Scene.Remove(DeltaEngine.Rendering2D.Entity2D)
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- control
- Type: DeltaEngine.Rendering2D Entity2D
Remarks
Examples
[Test, CloseAfterFirstFrame] public void RemoveBallIfGameIsOver() { var score = Resolve<Score>(); bool isGameOver = false; score.GameOver += () => isGameOver = true; score.LifeLost(); score.LifeLost(); score.LifeLost(); Assert.IsTrue(isGameOver); }
See Also