コード例 #1
0
 public void init(int width, int height, int depth, int minesCount)
 {
     this.width      = width;
     this.height     = height;
     this.depth      = depth;
     this.minesCount = minesCount;
     context         = GameObject.FindGameObjectWithTag("gameContext").GetComponent <MineSweeperContext>();
     positionGrid();
     StartCoroutine("instanciateCells");
 }
コード例 #2
0
 // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
 public void Configure(IApplicationBuilder app, IHostingEnvironment env, MineSweeperContext context)
 {
     if (env.IsDevelopment())
     {
         app.UseDeveloperExceptionPage();
     }
     else
     {
         app.UseHsts();
     }
     app.UseHttpsRedirection();
     app.UseAuthentication();
     app.UseMvc();
     context.Database.EnsureCreated();
 }
コード例 #3
0
 public MineSweepersController(MineSweeperContext context)
 {
     _context = context;
 }