Scene Remove Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void Remove(
	Entity2D control
)
Remarks

Tests: Breakout.Tests.GameTests
Examples

1 unit tests call DeltaEngine.Scenes.Scene.Remove(DeltaEngine.Rendering2D.Entity2D)
[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