protected override void OnAfterRender(bool firstRender) { base.OnAfterRender(firstRender); if (firstRender) { _base.Initialize(); _application = new PongApp(_jsRuntime, "pong-container"); _application.Start(); } }
public Paddle(PongApp application) { Application = application; }
public Ball(PongApp application) { Application = application; _direction = new Vector2(1, 0.7f); }