예제 #1
0
 protected override void OnAfterRender(bool firstRender)
 {
     if (firstRender)
     {
         _application = new PongApp(_jsRuntime, "pong-container");
         _application.Start();
     }
 }
예제 #2
0
 public Paddle(PongApp application)
 {
     Application = application;
 }
예제 #3
0
 public Ball(PongApp application)
 {
     Application = application;
     _direction  = new Vector2(1, 0.7);
 }