Exemple #1
0
    // Use this for initialization
    void Start()
    {
        //startBtn = GameObject.Find ("ButtonStart");
        print (startBtn);

        startbtnScript = startBtn.GetComponent<StartBtn> ();
    }
Exemple #2
0
 private void StartBtn_Click(object sender, EventArgs e)
 {
     StartBtn.Hide();
     InputBtn.Show();
     MLLbl.Show();
     CounterLbl.Show();
     val = GuessNumber.RandomGen();
 }
 private void ResetWindow()
 {
     IsStopping = false;
     LoadAccountsBtn.Invoke(new Action(() => LoadAccountsBtn.IsEnabled = true));
     LoadProxyBtn.Invoke(new Action(() => LoadProxyBtn.IsEnabled       = true));
     StartBtn.Invoke(new Action(() => StartBtn.IsEnabled         = true));
     StopBtn.Invoke(new Action(() => StopBtn.IsEnabled           = false));
     SettingsBtn.Invoke(new Action(() => SettingsBtn.IsEnabled   = true));
     ProxyTypeBox.Invoke(new Action(() => ProxyTypeBox.IsEnabled = true));
 }
Exemple #4
0
 //响应输入SN后的回车事件
 private void tb_scanSN_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (inputSN_TB.Text.Length == 0)
         {
             return;
         }
         StartBtn.PerformClick();
     }
 }
Exemple #5
0
 public void GameContinue()
 {
     Time.timeScale = 1f;
     PauseBtn.SetActive(true);
     ContinueBtn.SetActive(false);
     JoyStickBtn.SetActive(true);
     RestartBtn.SetActive(false);
     ArchiveBtn.SetActive(false);
     GameOverText.SetActive(false);
     StartBtn.SetActive(false);
 }
Exemple #6
0
        private async void trackBar3_Scroll(object sender, EventArgs e)
        {
            DesiredBox.Text = trackBar3.Value.ToString();
            if (running == true)
            {
                StpBtn.PerformClick();
                await Task.Delay(1001);

                StartBtn.PerformClick();
            }
        }
Exemple #7
0
    // Use this for initialization
    void Start()
    {
        //startBtn = GameObject.Find ("ButtonStart");
        print (startBtn);

        stagename = Application.loadedLevelName;
        startbtnScript = startBtn.GetComponent<StartBtn> ();
        button = gameObject.GetComponent<Button>();
        buttonconfirm = retryConfirmBtn.GetComponent<Button>();
        buttonCancel = cancelBtn.GetComponent<Button>();
        confirmPanel.SetActive (false);
    }
Exemple #8
0
    // Use this for initialization
    void Start()
    {
        //startBtn = GameObject.Find ("ButtonStart");
        print (startBtn);
        mainkawashima = GameObject.Find ("Main").GetComponent<MainKawashima> ();
        stagename = Application.loadedLevelName;
        startbtnScript = startBtn.GetComponent<StartBtn> ();
        button = gameObject.GetComponent<Button>();
        buttonconfirm = retryConfirmBtn.GetComponent<Button>();
        buttonCancel = cancelBtn.GetComponent<Button>();

        confirmPanel.GetComponent<IsThisUi> ().enabled = false;
        confirmPanel.SetActive (false);
    }
Exemple #9
0
 private void StartBtn_Click(object sender, EventArgs e)
 {
     StartBtn.Hide();
     PlusBtn.Show();
     MultiBtn.Show();
     CounterLbl.Show();
     ValLbl.Show();
     NeedLbl.Show();
     Nval         = Doubler.RandVal();
     NeedLbl.Text = $"Need to get: {Nval}";
     CancelBtn.Show();
     CompActLbl.Show();
     RestartBtn.Show();
     CompActLbl.Text = $"Computer Actions count: {Doubler.ResSearch(Nval)}";
 }
        /// <summary>
        /// 更新界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Update_IN_Status(object sender, System.EventArgs e)
        {
            string GroupIN_Status = Group_IN_Signal.Value.ToString();

            if (GroupIN_Status != null)
            {
                int IO_IN_VALUE = int.Parse(GroupIN_Status);
                for (int i = 0; i < 16; i++)
                {
                    if (IO_IN_VALUE % 2 == 1)
                    {
                        checkedListBox_IO_IN.SetItemChecked(i, true);//对应IO置为true
                    }
                    else
                    {
                        checkedListBox_IO_IN.SetItemChecked(i, false);
                    }
                    IO_IN_VALUE = IO_IN_VALUE >> 1;
                }
            }

            if (checkedListBox_IO_IN.GetItemChecked(9) == true)
            {
                IO_IN_10 = true;
            }
            else
            {
                IO_IN_10 = false;
            }

            if (checkedListBox_IO_IN.GetItemChecked(10) == true)
            {
                IO_IN_11 = true;
            }
            else
            {
                IO_IN_11 = false;
            }

            if (checkedListBox_IO_IN.GetItemChecked(8) == false && IsStart == true) //暂停按键
            {
                StartBtn.PerformClick();                                            //点击暂停
                Thread.Sleep(60);
                Emergency_Stop_Alarm = true;
                MessageBox.Show("激光护栏被触发");
            }
        }
        private void PlayTrack()
        {
            StartBtn.Focus();
            TrackPlay.ToolTip  = trackPath;
            Starter.Visibility = Visibility.Hidden;
            Me.Visibility      = Visibility.Visible;
            bool     ok = true;
            FileInfo fi = null;
            Uri      src;

            try
            {
                fi = new FileInfo(trackPath);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                ok = false;
            }

            if (ok)
            {
                //Sprawdzam czy plik istnieje
                if (!fi.Exists)
                {
                    MessageBox.Show("Nie odnaleziono " + trackPath);
                }
                else
                {
                    src       = new Uri(trackPath);
                    Me.Source = src;
                    // assign the defaults (from slider positions) when a track starts playing
                    Me.SpeedRatio = speedRatioValue;
                    Me.Volume     = VolumeSlider.Value;

                    Me.Play();
                    timer.Start();
                    PrzelacznikStop_Play();
                    Me.Pause();
                }
            }
        }
Exemple #12
0
        private void countThread()
        {
            while (true)
            {
                if (receiveMessage != "" && receiveMessage != null)
                {
                    if (receiveMessage == "run over a sponge")//跑完一张,计数减
                    {
                        if (Global.bed_num > 0)
                        {
                            Global.bed_num -= 1;
                            SerialServer.send_BedNum((short)(Global.bed_num));

                            bedNumLabel.BeginInvoke(new Action(() =>
                            {
                                bedNumLabel.Text = Global.bed_num.ToString();//显示张数,计数
                            }));
                        }
                        if (info_textBox.Lines.Length >= 5)
                        {
                            info_textBox.Text = "";
                        }
                        info_textBox.Text += "完成一张棉" + "  " + DateTime.Now + "\r\n";//显示完成时间
                    }
                    receiveMessage = "";
                    if (Global.bed_num == 0)
                    {
                        StartBtn.BeginInvoke(new Action(() =>
                        {
                            StartBtn_Click(null, null);//停止流水线
                            MessageBox.Show("计数为零,请从新设置张数!");
                        }));
                    }
                }
                else
                {
                    Thread.Sleep(10);
                }
            }
        }
Exemple #13
0
    public void UpDown()
    {
        float goodRatio = 9f / 16f;
        float ratio     = (float)Screen.width / Screen.height;

        if (ratio < goodRatio) //세로가 존나게 길경우
        {
            float difference = goodRatio - ratio;
            ScrollView.GetComponent <RectTransform>().anchoredPosition = new Vector3(ScrollView.GetComponent <RectTransform>().anchoredPosition.x,
                                                                                     ScrollView.GetComponent <RectTransform>().anchoredPosition.y + difference * 1800, 0);
            Tab.GetComponent <RectTransform>().anchoredPosition = new Vector3(
                Tab.GetComponent <RectTransform>().anchoredPosition.x,
                Tab.GetComponent <RectTransform>().anchoredPosition.y + difference * -1800, 0);
            StartBtn.GetComponent <RectTransform>().anchoredPosition = new Vector3(
                StartBtn.GetComponent <RectTransform>().anchoredPosition.x,
                StartBtn.GetComponent <RectTransform>().anchoredPosition.y + difference * -1800, 0);
            upUI.GetComponent <RectTransform>().anchoredPosition = new Vector3(
                upUI.GetComponent <RectTransform>().anchoredPosition.x,
                upUI.GetComponent <RectTransform>().anchoredPosition.y + difference * 1800, 0);
            //print(difference * -1800);
        }
    }
Exemple #14
0
 private void Form1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         StartBtn.PerformClick();
     }
     else if (e.KeyCode == Keys.Delete)
     {
         deleteBtn.PerformClick();
     }
     else if (e.Modifiers == Keys.Control)
     {
         if (e.KeyCode == Keys.E)
         {
             editBtn.PerformClick();
         }
         else if (e.KeyCode == Keys.A)
         {
             addBtn.PerformClick();
         }
     }
     e.Handled = false;
 }
Exemple #15
0
        public override bool OnUpdate(double ElapsedTime)
        {
            Engine.Drawer.Sprite(new PointF(0, 0), Background);
            if (Engine.MouseOnTopOf(StartBtn))
            {
                StartBtn.SetAnimation("start_btn_on");
            }
            else
            {
                StartBtn.SetAnimation("start_btn_off");
            }

            if (Engine.MouseOnTopOf(RestartBtn))
            {
                RestartBtn.SetAnimation("restart_btn_on");
            }
            else
            {
                RestartBtn.SetAnimation("restart_btn_off");
            }

            if (Engine.MouseOnTopOf(StartBtn))
            {
                if (Engine.MouseClicked(System.Windows.Forms.MouseButtons.Left))
                {
                    UpDown.Play(false);
                    if (Game == null)
                    {
                        game = new Playing(this.Engine);
                    }
                    else
                    {
                        game = Game;
                    }
                    Engine.RegisterScene(game);
                    Engine.GoToScene(game);
                }
            }

            if (Engine.MouseOnTopOf(RestartBtn))
            {
                if (Engine.MouseClicked(System.Windows.Forms.MouseButtons.Left))
                {
                    UpDown.Play(false);
                    game = new Playing(this.Engine);
                    Engine.RegisterScene(game);
                    Engine.GoToScene(game);
                }
            }

            if (Engine.KeyClicked(System.Windows.Forms.Keys.Space))
            {
                UpDown.Play(false);
                StartBtn.SetAnimation("start_btn_on");
                if (Game == null)
                {
                    game = new Playing(this.Engine);
                }
                else
                {
                    game = Game;
                }
                Engine.RegisterScene(game);
                Engine.GoToScene(game);
            }

            Engine.Drawer.String("Use Space bar to Stop music", "Arial", 8, System.Drawing.Color.Black, new PointF(20, Engine.ScreenHeight() - 50));
            Engine.Drawer.String("Use Escape to go back to this menu", "Arial", 8, System.Drawing.Color.Black, new PointF(20, Engine.ScreenHeight() - 40));


            Engine.Drawer.String("Powred by CSharpGame | https://github.com/MohKamal/CsharpGame", "Arial", 8, System.Drawing.Color.Black, new PointF(20, Engine.ScreenHeight() - 20));

            return(base.OnUpdate(ElapsedTime));
        }
Exemple #16
0
        private void engine_Recognized(object sender, SpeechRecognizedEventArgs e)
        {
            string speech = e.Result.Text;

            switch (speech)
            {
            case "start reading":
                CopyScreenBtn.PerformClick();
                StartBtn.PerformClick();
                break;

            case "read the result":
            case "read the resuls":
            case "whats the result":
            case "whats the results":
                GetResult();
                break;

            case "search":
                SearchBtn.PerformClick();
                break;

            case "pause":
                PauseBtn.PerformClick();
                break;

            case "resume":
                PauseBtn.PerformClick();
                break;

            case "back":
                BackBtn.PerformClick();
                break;

            case "next":
                ForwardBtn.PerformClick();
                break;

            case "stop":
                StopBtn.PerformClick();
                break;

            case "close website search":
                Decca.Speak("Closing Website Reader");
                CloseBtn.PerformClick();
                break;

            case "hide website reader":
                FormBorderStyle = FormBorderStyle.None;
                WindowState     = FormWindowState.Minimized;
                TopMost         = false;
                break;

            case "show website reader":
            case "show website reader again":
                FormBorderStyle = FormBorderStyle.None;
                WindowState     = FormWindowState.Normal;
                TopMost         = true;
                break;

            default:
                break;
            }
            if (speech == "find")
            {
                string Speech = e.Result.Text;
                Qevent = Speech;
                Speech = string.Empty;
                Decca.SpeakAsync("what do you want to search");
                speech = string.Empty;

                Process_OutputDataReceived();
            }
        }
        /// <summary>
        /// 开启主线程
        /// </summary>
        private void mainThread()
        {
            int Match_timers         = 0;   //匹配计数
            int Start_Glue_Wait_time = 0;   //开始喷胶等待的回合
            int Stop_Glue_Wait_time  = 0;   //停止喷胶等待的回合

            GLB.Camera_index = 0;           //先从垛区拍照
            bool   isFinishPutDown = false; //是否完成覆合
            Pose   mypq            = new Pose();
            Point3 cls             = new Point3();

            double[] myQQ = cls.ABC2Q(0, Math.PI, 0);//欧拉角转四元数
            //#######################################home#######################################
            abbController.StartRoutine(AbbCtrl, "MainModule", "goHome");
            WaitForRoutineFinish();//等待Rapid程序执行结束

            while (ProgramStart)
            {
                //#######################################喷胶#######################################
                if (GLB.run_mode == 1 && IsStart == true)
                {
                    if (IO_IN_11 == false && isFinishPutDown == false)//滚筒上有海绵,未完成覆合
                    {
                        if (ForwardCylinder == "0")
                        {
                            ForwardCylinder = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO12");                        //前挡
                        }
                        if (BackwardCylinder == "0")
                        {
                            BackwardCylinder = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO14"); //后挡阻挡
                        }
                        MotorStatus = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO1");         //停止正转
                        Thread.Sleep(200);
                        abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO13");                        //侧推
                        Thread.Sleep(1000);
                        abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO13");                      //侧推收回
                        GLB.run_mode     = 2;                                                         //进入下一工作模式
                        GLB.Camera_index = 0;
                        Thread.Sleep(300);
                    }
                    else if (IO_IN_11 == false && isFinishPutDown == true)                         //滚筒上有海绵,完成覆合
                    {
                        ForwardCylinder = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO12"); //前挡收回
                        if (BackwardCylinder == "1")
                        {
                            BackwardCylinder = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO14"); //后挡收回
                        }
                        while (IO_IN_11 != true)                                                        //直到海绵离开
                        {
                            if (IsStart == true && MotorStatus != "1")
                            {
                                MotorStatus = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO1");                                       //正转
                            }
                            else if (IsStart == false && MotorStatus == "1")
                            {
                                MotorStatus = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO1");                                             //停止正转
                            }
                            else
                            {
                                Thread.Sleep(30);
                            }
                        }
                        isFinishPutDown = false; //清除标志
                        Thread.Sleep(50);        //直到棉完全通过
                    }
                    else
                    {
                        if (ForwardCylinder != "1")
                        {
                            ForwardCylinder = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO12");                        //前挡
                        }
                        if (MotorStatus != "1")
                        {
                            MotorStatus = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO1");         //正转:
                        }
                        if (Start_Glue_Wait_time == 0 && BackwardCylinder == "1")                       //后档首次放行
                        {
                            BackwardCylinder = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO14"); //后挡放行
                        }
                        if (IO_IN_10 == false)                                                          //检测到有棉
                        {
                            if (Start_Glue_Wait_time < 40)                                              //延时开始喷胶
                            {
                                Start_Glue_Wait_time++;
                                Thread.Sleep(10);
                            }
                            else
                            {
                                Stop_Glue_Wait_time = 0;//清除停止喷胶延时次数
                                if (BackwardCylinder == "0")
                                {
                                    BackwardCylinder = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO14");                         //后挡阻挡
                                }
                                if (Gun1_6 == "0" && GLB.produceSampleList[GLB.produce_index].axisShort > 900)
                                {
                                    Gun1_6 = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO9");//喷胶1.6
                                }
                                if (Gun2_3 == "0")
                                {
                                    Gun2_3 = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO10");               //喷胶2.3
                                }
                                if (Gun4_5 == "0")
                                {
                                    Gun4_5 = abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO11");               //喷胶4.5
                                }
                            }
                        }
                        else
                        {
                            if (Stop_Glue_Wait_time < 40) //延时停止喷胶
                            {
                                Stop_Glue_Wait_time++;
                                Thread.Sleep(10);
                            }
                            else
                            {
                                Start_Glue_Wait_time = 0;//清除开始喷胶延时次数
                                if (Gun1_6 == "1")
                                {
                                    Gun1_6 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO9");               //停止喷胶
                                }
                                if (Gun2_3 == "1")
                                {
                                    Gun2_3 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO10");
                                }
                                if (Gun4_5 == "1")
                                {
                                    Gun4_5 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO11");
                                }
                            }
                        }
                    }
                }
                else if (GLB.run_mode == 1 && IsStart == false)//中途暂停
                {
                    Thread.Sleep(5);
                    if (MotorStatus == "1")
                    {
                        MotorStatus = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO1");                    //停止正转
                    }
                    if (Gun1_6 == "1")
                    {
                        Gun1_6 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO9");               //停止喷胶
                    }
                    if (Gun2_3 == "1")
                    {
                        Gun2_3 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO10");
                    }
                    if (Gun4_5 == "1")
                    {
                        Gun4_5 = abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO11");
                    }
                }
                //#######################################图漾相机抓取乳胶棉#######################################
                if (GLB.run_mode == 2 && GLB.Match_success == true && IsStart == true) //图漾匹配成功 并且没有暂停
                {
                    GLB.avgAngle.Clear();                                              //旋转角清空队列
                    GLB.avgCameraPoint3.Clear();                                       //相机坐标队列清空
                    Match_timers      = 0;                                             //计数清零
                    GLB.Camera_index  = -1;                                            //停止拍照
                    GLB.Match_success = false;                                         //清除标志位


                    //**************乳胶棉目标点**************
                    myQQ = cls.ABC2Q(-Math.PI / 2 - GLB.device_angl, Math.PI, 0);
                    mypq.FillFromString2("[[" + GLB.robot_device_point.X + "," + GLB.robot_device_point.Y + "," + GLB.robot_device_point.Z + "]," +
                                         "[" + myQQ[0] + "," + myQQ[1] + "," + myQQ[2] + "," + myQQ[3] + "]]");

                    writePosQuat(mypq);//传输坐标
                    Thread.Sleep(50);
                    abbController.StartRoutine(AbbCtrl, "MainModule", "TakeUpFromZoneToDesk");
                    WaitForRoutineFinish();    //等待Rapid程序执行结束

                    GLB.Match_success = false; //清除标志位
                    GLB.Camera_index  = 1;     //切换相机
                    GLB.run_mode      = 3;
                    Thread.Sleep(200);
                }
                else if (GLB.run_mode == 2 && GLB.Match_success == false && IsStart == true)
                {
                    Match_timers += 1;
                    if (Match_timers > 20)//二十次匹配不到,暂停
                    {
                        this.BeginInvoke(new Action(() =>
                        {
                            StartBtn.PerformClick();//点击暂停
                            Emergency_Stop_Alarm = true;
                            Thread.Sleep(60);
                            MessageBox.Show("垛区无法识别到乳胶棉,或者数量过少");
                            Match_timers = 0;
                        }));
                    }
                    Thread.Sleep(300);
                }
                ////#######################################映美金二次抓取乳胶棉#######################################
                if (GLB.run_mode == 3 && GLB.Match_success == true && IsStart == true) //图漾匹配成功 并且没有暂停
                {
                    Match_timers      = 0;                                             //计数清零
                    GLB.Camera_index  = -1;                                            //停止拍照
                    GLB.Match_success = false;                                         //清除标志位


                    //**************平台乳胶棉目标点**************
                    myQQ = cls.ABC2Q(-GLB.device_angl, Math.PI, 0);
                    mypq.FillFromString2("[[" + GLB.robot_device_point.X + "," + GLB.robot_device_point.Y + "," + GLB.robot_device_point.Z + "]," +
                                         "[" + myQQ[0] + "," + myQQ[1] + "," + myQQ[2] + "," + myQQ[3] + "]]");

                    writePosQuat(mypq);//传输坐标
                    //产品类型--放置点
                    abbController.producetypeLocal.FillFromString2(GLB.produce_index.ToString());
                    using (Mastership m = Mastership.Request(AbbCtrl.Rapid))
                    {
                        abbController.produceTypeRobot.Value = abbController.producetypeLocal;
                        m.Release();
                    }
                    Thread.Sleep(50);
                    abbController.StartRoutine(AbbCtrl, "MainModule", "TakeUpFromDeskToTansLine");
                    WaitForRoutineFinish();  //等待Rapid程序执行结束

                    isFinishPutDown  = true; //完成覆合
                    GLB.Camera_index = 0;    //切换相机
                    GLB.run_mode     = 1;
                    Thread.Sleep(200);
                }
                else if (GLB.run_mode == 3 && GLB.Match_success == false && IsStart == true)
                {
                    Thread.Sleep(500);
                    abbController.SetIOStatus(AbbCtrl, "Local_IO_0_DO3");//触发相机
                    Thread.Sleep(50);
                    abbController.ResetIOStatus(AbbCtrl, "Local_IO_0_DO3");
                    Match_timers += 1;
                    if (Match_timers > 10)//十次匹配不到,暂停
                    {
                        this.BeginInvoke(new Action(() =>
                        {
                            StartBtn.PerformClick();//点击暂停
                            Thread.Sleep(60);
                            Emergency_Stop_Alarm = true;
                            MessageBox.Show("平台上无法识别到乳胶棉");
                            Match_timers = 0;
                        }));
                    }
                    Thread.Sleep(500);
                }
                else
                {
                    Thread.Sleep(20);
                }
            }
        }
    //*************************************************** 0630 yamaguchi dash finish
    IEnumerator fStart()
    {
        GetComponent<Animator> ().SetBool ("isMove", true);

        //********************************************************************* 0630 yamaguchi count down start
        cdCanvas = GameObject.Find ("CountDownText");
        cdText = cdCanvas.GetComponent<Text>();

        if (cnt < 0) {
            while (startFlg!=1) {
                yield return new WaitForSeconds (0.01f);
            }
        }
        for (int i = 0; i < cnt; i++) {
            //print (i);
            cdText.text = (cnt - i - 1).ToString ();
            //			Text target = cdCanvas.GetComponent<Text>();
            //********************************************************************* 0713 kawashima countdown sound start
            if ((cnt - i - 1) == 3) {
                print ("時報スタート");
                Sounds.SEjihou ();
            }
            //********************************************************************* 0713 kawashima countdown sound end

            print ("時報");
            if (startFlg == 1) {
                break;
            } else {
                yield return new WaitForSeconds (1.0f);
            }
            //ここでカウントダウン用表示
        }

        fSendCountStart ();

        cdText.text = "GO";

        //********************************************************************* 0630 yamaguchi count down finish
        //*************************************************** 0702 kawashima changeGreen start
        startcube = GameObject.Find ("StartCube");
        startcubeanim = startcube.GetComponent<startCubeAnim> ();
        startcubeanim.fChangeGreen ();

        startbtnObj = GameObject.Find ("ButtonStart");
        if (startbtnObj != null) {
            startbtn = startbtnObj.GetComponent<StartBtn> ();
            startbtn.fStartBtnOff ();
        }

        //*************************************************** 0702 kawashima changeGreen finish
        fNextMove ();
    }
 private void UpdateButtons()
 {
     StartBtn.GetBindingExpression(Button.IsEnabledProperty).UpdateTarget();
     StopBtn.GetBindingExpression(Button.IsEnabledProperty).UpdateTarget();
     RestartBtn.GetBindingExpression(Button.IsEnabledProperty).UpdateTarget();
 }
Exemple #20
0
        void ReleaseDesignerOutlets()
        {
            if (InputTbox != null)
            {
                InputTbox.Dispose();
                InputTbox = null;
            }

            if (StartBtn != null)
            {
                StartBtn.Dispose();
                StartBtn = null;
            }

            if (PdfCbzChk != null)
            {
                PdfCbzChk.Dispose();
                PdfCbzChk = null;
            }

            if (CbrPdfChk != null)
            {
                CbrPdfChk.Dispose();
                CbrPdfChk = null;
            }

            if (DeleteOrigChk != null)
            {
                DeleteOrigChk.Dispose();
                DeleteOrigChk = null;
            }

            if (JoinImgChk != null)
            {
                JoinImgChk.Dispose();
                JoinImgChk = null;
            }

            if (ReduceSizeChk != null)
            {
                ReduceSizeChk.Dispose();
                ReduceSizeChk = null;
            }

            if (CurrFileProgressBar != null)
            {
                CurrFileProgressBar.Dispose();
                CurrFileProgressBar = null;
            }

            if (TotalProgressBar != null)
            {
                TotalProgressBar.Dispose();
                TotalProgressBar = null;
            }

            if (ProcessingLbl != null)
            {
                ProcessingLbl.Dispose();
                ProcessingLbl = null;
            }

            if (SelectFileBtn != null)
            {
                SelectFileBtn.Dispose();
                SelectFileBtn = null;
            }
        }
 public void StartLoading()
 {
     StartBtn.Click();
 }
Exemple #22
0
    //*************************************************** 0630 yamaguchi dash finish
    IEnumerator fStart()
    {
        //********************************************************************* 0630 yamaguchi count down start
        cdCanvas = GameObject.Find ("CountDownText");
        cdText = cdCanvas.GetComponent<Text>();

        for (int i = 0; i < cnt; i++) {
            //print (i);
            cdText.text = (cnt - i - 1).ToString();
            //			Text target = cdCanvas.GetComponent<Text>();

            if(startFlg == 1){
                //break;
            }else{
                yield return new WaitForSeconds (1.0f);
            }
            //ここでカウントダウン用表示
        }

        fSendCountStart ();

        cdText.text = "GO";

        //********************************************************************* 0630 yamaguchi count down finish
        //*************************************************** 0702 kawashima changeGreen start
        startcube = GameObject.Find ("StartCube");
        startcubeanim = startcube.GetComponent<startCubeAnim> ();
        startcubeanim.fChangeGreen ();

        startbtnObj = GameObject.Find ("ButtonStart");
        if (startbtnObj != null) {
            startbtn = startbtnObj.GetComponent<StartBtn> ();
            startbtn.fStartBtnOff ();
        }

        //*************************************************** 0702 kawashima changeGreen finish
        fNextMove ();
    }
 protected override void UnloadContent()
 {
     //Disposing loaded content
     StartBtn.Dispose();
 }