// Use this for initialization void Start() { init_cls = GameObject.Find("Main Camera").GetComponent <initialize>(); //GetComponent<Text>().text = "clear time is " + init_cls.countTime.ToString(); GetComponent <Text>().text = "clear time is " + initialize.countTime.ToString(); Debug.Log(initialize.countTime); }
private void Initialze() { IntPtr pAddressOfFunctionToCall = DllMethods.GetProcAddress(_pDll, "initialize"); initialize Initialize = (initialize)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(initialize)); Initialize(); }
public void rest() { init_cls = GameObject.Find("Main Camera").GetComponent <initialize>(); Destroy(init_cls); SceneManager.LoadScene("reverse"); }
private bool executeSQL(string file) { initialize dbContext = new initialize("przechowalnia", "True"); // open the connection: dbContext.sqlite_conn.Open(); // create a new SQL command: dbContext.sqlite_cmd = dbContext.sqlite_conn.CreateCommand(); // Let the SQLiteCommand object know our SQL-Query: dbContext.sqlite_cmd.CommandText = file; dbContext.sqlite_cmd.ExecuteNonQuery(); // We are ready, now lets cleanup and close our connection: dbContext.sqlite_conn.Close(); return(true); }
public void Reset() { init_cls = GameObject.Find("Main Camera").GetComponent <initialize>(); init_cls.cnt_turn = 4; //ターンカウント値リセット initialize.countTime = 0; //時間カウント値リセット initialize.flag_player = 0; //player flagリセット Debug.Log("buttun click!"); for (int j = 0; j < 8; j++) { for (int k = 0; k < 8; k++) { //if (init_cls.flag_put[j,k] != 2) // 石が置かれている場合 if (initialize.flag_put[j, k] != 2) // 石が置かれている場合 { Destroy(init_cls.Ishi_click[j, k]); // オブジェクト消す } } } for (int j = 0; j < 8; j++) { for (int k = 0; k < 8; k++) { //init_cls.flag_put[j, k] = 2; initialize.flag_put[j, k] = 2; } } //init_cls.flag_put[3, 3] = 0; init_cls.flag_put[4, 3] = 1; //init_cls.flag_put[3, 4] = 1; init_cls.flag_put[4, 4] = 0; initialize.flag_put[3, 3] = 0; initialize.flag_put[4, 3] = 1; initialize.flag_put[3, 4] = 1; initialize.flag_put[4, 4] = 0; init_cls.Ishi_click[4, 3] = Instantiate(init_cls.Ishi, new Vector3(init_cls.x_ishi, init_cls.y_ishi, init_cls.z_ishi), Quaternion.identity); init_cls.Ishi_click[3, 4] = Instantiate(init_cls.Ishi, new Vector3(init_cls.x_ishi + 1.0f, init_cls.y_ishi, init_cls.z_ishi - 1.0f), Quaternion.identity); init_cls.Ishi_click[4, 4] = Instantiate(init_cls.Ishi, new Vector3(init_cls.x_ishi + 1.0f, init_cls.y_ishi, init_cls.z_ishi), Quaternion.Euler(0, 0, 180)); init_cls.Ishi_click[3, 3] = Instantiate(init_cls.Ishi, new Vector3(init_cls.x_ishi, init_cls.y_ishi, init_cls.z_ishi - 1.0f), Quaternion.Euler(0, 0, 180)); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public async void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, IServiceProvider serviceProvider) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseDatabaseErrorPage(); app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseIdentity(); // Add external authentication middleware below. To configure them please see http://go.microsoft.com/fwlink/?LinkID=532715 app.UseMvc(routes => { routes.MapRoute( name: "change-role", template: "UpdateRemoveUsers/updateRole/{userID}/{role}", defaults: new { controller = "UpdateRemoveUsers", action = "updateRole" }); routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); initialize initi = new initialize(); await initi.CreateRoles(serviceProvider); }