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"); }
// 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(); }
public MineSweepersController(MineSweeperContext context) { _context = context; }