Add log levels to logger, update formats, use string as input argument for the message.
This commit is contained in:
@@ -8,7 +8,6 @@ public class TestPlayer : RectangleShape2d
|
||||
{
|
||||
base.OnStart();
|
||||
Color = Color.Cyan;
|
||||
_logger.Echo("OnStart");
|
||||
|
||||
_camera = new Camera2d()
|
||||
{
|
||||
@@ -29,10 +28,6 @@ public class TestPlayer : RectangleShape2d
|
||||
Position += velocity * (float)dt;
|
||||
|
||||
_camera.Position = MathUtils.LerpVector2(_camera.Position, Position, dt * 5f);
|
||||
|
||||
// var mousePos = Input.GetMousePosition();
|
||||
// Position = MathUtils.LerpVector2(Position, mousePos, dt * 5f);
|
||||
// Rotation += (float)dt * 100f;
|
||||
}
|
||||
|
||||
private Logger _logger = new(nameof(TestPlayer));
|
||||
|
||||
Reference in New Issue
Block a user