void Start() { // GDB.enemyList.Add(gameObject); GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlobalDataBase>(); log = GDB.WaweNum; switch (log) { case 1: allPoint[0] = point0.transform; allPoint[1] = point1.transform; allPoint[2] = point2.transform; allPoint[3] = point3.transform; break; case 2: allPoint[0] = point10.transform; allPoint[1] = point11.transform; allPoint[2] = point12.transform; allPoint[3] = point13.transform; break; case 3: allPoint[0] = point20.transform; allPoint[1] = point21.transform; allPoint[2] = point22.transform; allPoint[3] = point23.transform; break; } }
void Start() { // GDB.enemyList.Add(gameObject); GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<GlobalDataBase>(); log = GDB.WaweNum; switch(log) { case 1: allPoint[0] = point0.transform; allPoint[1] = point1.transform; allPoint[2] = point2.transform; allPoint[3] = point3.transform; break; case 2: allPoint[0] = point10.transform; allPoint[1] = point11.transform; allPoint[2] = point12.transform; allPoint[3] = point13.transform; break; case 3: allPoint[0] = point20.transform; allPoint[1] = point21.transform; allPoint[2] = point22.transform; allPoint[3] = point23.transform; break; } }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } GlobalDataBase = await _context.GlobalDataBase.FirstOrDefaultAsync(m => m.GlobalDataBaseId == id); if (GlobalDataBase == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } GlobalDataBase = await _context.GlobalDataBase.FindAsync(id); if (GlobalDataBase != null) { _context.GlobalDataBase.Remove(GlobalDataBase); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }
private void MainWindow_Load(object sender, EventArgs e) { int y = Screen.PrimaryScreen.WorkingArea.Bottom - this.Height; int x = Screen.PrimaryScreen.WorkingArea.Right - this.Width; this.Location = new Point(x, y); envMonitor = new GlobalDataBase(); var connectionInfo = new ConnectionInfo("fireplug.dreamhost.com", "compusa", new PasswordAuthenticationMethod("compusa", "blackmagic1")); compusaServer = new SftpClient(connectionInfo); compusaServer.Connect(); if (compusaServer.IsConnected) { envMonitor.ConnectionStatus = "compusa.live : connected"; hireFisherMan(); } }
void Start() { GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<GlobalDataBase>(); GDB.obj.Add(gameObject); }
void Start() { GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<GlobalDataBase>(); // _timerDown = timer; }
void Start() { GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlobalDataBase>(); GDB.obj.Add(gameObject); }
void Start() { GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlobalDataBase>(); // _timerDown = timer; }