Example #1
0
    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;
        }
    }
Example #2
0
 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;
     }
 }
Example #3
0
        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());
        }
Example #4
0
        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"));
        }
Example #5
0
        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();
            }
        }
Example #6
0
 void Start()
 {
     GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<GlobalDataBase>();
     GDB.obj.Add(gameObject);
 }
Example #7
0
 void Start()
 {
     GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent<GlobalDataBase>();
        // _timerDown = timer;
 }
Example #8
0
 void Start()
 {
     GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlobalDataBase>();
     GDB.obj.Add(gameObject);
 }
Example #9
0
 void Start()
 {
     GDB = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <GlobalDataBase>();
     // _timerDown = timer;
 }