コード例 #1
0
        public void LoadEnemySightAndWay()
        {
            if (fight)
            {
                return;
            }
            // prms.bmp = new Bitmap(Environment.CurrentDirectory + "\\ImagesH\\olp.png");
            source          = new CancellationTokenSource();
            prms.ct         = source.Token;
            prms.pb         = pictureBox1;
            prms.plar       = player;
            prms.enaList    = enemys;
            prms.thList     = thRunList;
            prms.St_Width   = frm1.Start_Width;
            prms.St_Height  = frm1.Start_Height;
            prms.thAutoList = thList;
            Thread newTh = new Thread(delegate() { PathFinding.CheckForEntities(prms); });

            thRunList.Add(newTh);
            newTh.Start();
        }