LevelTests GetBrickAtScreenPosition Method Delta Engine Documentation

Namespace: Breakout.Tests
Assembly: Breakout.Tests (in Breakout.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void GetBrickAtScreenPosition()
Examples

[Test, CloseAfterFirstFrame]
public void GetBrickAtScreenPosition()
{
    var level = Resolve<Level>();
    Assert.Null(level.GetBrickAt(0f, 0.6f));
    Assert.Null(level.GetBrickAt(1f, 0f));
    Assert.NotNull(level.GetBrickAt(0.25f, 0.25f));
}
See Also