/// <summary> /// 框架初始化 /// </summary> public static void FrameworkInit(UpdateDriver updateDriver) { //构造框架各模块的实例 UpdateDriver = updateDriver; ABManifestLoader = CreateInstance <ABManifestLoader>(); AssetBundleLoader = CreateInstance <AssetBundleLoader_4>(); ResLoader = CreateInstance <ResLoader>(); Hotfixer = CreateInstance <Hotfixer>(); FsmCtrler = CreateInstance <FsmCtrler>(); ProcedureCtrler = CreateInstance <ProcedureCtrler>(); DataNodeCtrler = CreateInstance <DataNodeCtrler>(); IBoxDBCtrler = CreateInstance <IBoxDBCtrler>(); ThreadCrossHelper = CreateInstance <ThreadCrossHelper>(); UnityHelper = CreateInstance <UnityHelper>(); //加载热更新Dll //Hotfixer.LoadHotfixDll(); //TODO:添加框架各模块的轮询器 UpdateDriver.AddUpdater(FsmCtrler); UpdateDriver.AddUpdater(ThreadCrossHelper); //TODO:添加测试代码的轮询器 //UpdateDriver.AddUpdater<ActionNodeTestMain>(); //GameObject cube = ResLoader.LoadGameObject("UpdaterCube"); //cube.AddUpdater<UpdaterTestMain>(); }
/* Different instance each scene. */ private void OnDestroy() { if (this == _instance) { _instance = null; } }
public async Task <IActionResult> UpdateDriverData([FromBody] UpdateDriver driverDto) { if (await _driverRepository.UpdateDriver(driverDto)) { return(Ok()); } return(BadRequest()); }
private void metroTile4_Click(object sender, EventArgs e) { UpdateDriver form = new UpdateDriver(); this.Hide(); form.FormClosed += new FormClosedEventHandler(delegate { Close(); }); form.Show(); }
// Use this for initialization void Start() { mUpdateDriver = new UpdateDriver(); mUpdateDriver.AddUpdate(stepTask.Update); stepTask = new StepProcess(); stepTask.StartStep(Fn1()); }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 1) { var item = Data.drivers[e.RowIndex]; var form = new UpdateDriver(); form.setdata(item); form.ShowDialog(); RefreshData(); } }
/* Awake for this Driver script. NOT awake for other classes connected to this. */ private void Awake() { /* Enforce Singleton: */ if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } /* Initialization: */ cam = GameObject.FindObjectOfType <CameraFollow>(); }
public async Task <bool> UpdateDriver(UpdateDriver driver) { var filter = Builders <Driver> .Filter.Eq("_id", ObjectId.Parse(driver.driverID)); var update = Builders <Driver> .Update.Set("Address", driver.Address).Set("Class", driver.Class) .Set("Collectorate", driver.Collectorate) .Set("DateExpired", driver.DateExpired) .Set("DateIssued", driver.DateIssued) .Set("DOB", driver.DOB) .Set("Gender", driver.Gender) .Set("LicenseToDrive", driver.LicenseToDrive) .Set("FirstName", driver.FirstName) .Set("LastName", driver.LastName) .Set("MiddleName", driver.MiddleName) .Set("PoliceRecordNumber", driver.PoliceRecordNumber) //.Set("PPV", driver.PPV) .Set("TimePoliceRecordIssue", driver.TimePoliceRecordIssue) .Set("Trn", driver.Trn); var result = await _context.Driver.UpdateOneAsync(filter, update); return(result.IsAcknowledged); }
public async Task <IActionResult> Put([FromBody] UpdateDriver command) { await DispatchAsync(command); return(NoContent()); }
private void Init() { mUpdateDriver = new UpdateDriver(); main.Update = mUpdateDriver.Update; mStepBehaviour = new StepProcess(); }