コード例 #1
0
 private void Awake()
 {
     timer = GetComponent <TimerGame>();
     waitConnectionPanel.gameObject.SetActive(false);
     waitingEnemyPanel.gameObject.SetActive(false);
     gameObject.SetActive(false);
 }
コード例 #2
0
 void Play()
 {
     TimerGame.Stop();
     GenerateNumbers();
     RandomImages();
     Quest.Image = imageList1.Images[3];
 }
コード例 #3
0
 void  WinOrNot()
 {
     if (redbtn >= 3)
     {
         TimerGame.Stop();
         Timer.Stop();
         lblLost.Visible = true;
     }
     if (BeePic.Bounds.IntersectsWith(PicBeehive.Bounds))
     {
         TimerGame.Stop();
         Timer.Stop();
         lblWin.Visible = true;
     }
 }
コード例 #4
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            PictureBox pic      = (PictureBox)sender;
            bool       checking = Check(int.Parse(NB1.Text.ToString()), int.Parse(NB2.Text.ToString()), int.Parse(pic.Tag.ToString()));

            if (checking)
            {
                score         = score + 10;
                lblScore.Text = "score : " + score;

                Quest.Image = pic.InitialImage;
                Thread.Sleep(1000);
                TimerGame.Start();
                Play();
            }
            else
            {
                score         = score - 10;
                lblScore.Text = "score : " + score;
            }
        }
コード例 #5
0
ファイル: Buttons.cs プロジェクト: BaggioPereira/TapThat
 public void Play()
 {
     Menu.SetActive(false);
     //Time.timeScale = 1f;
     TimerGame.SetActive(true);
 }
コード例 #6
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     Restart();
     TimerGame.Start();
 }
コード例 #7
0
    //public static float tempoPartida;
    // private TypedLobby lobbyName = new TypedLobby("New_Lobby", LobbyType.Default);
    // private RoomInfo[] roomsList;
    void Start()
    {
        timeGame = new TimerGame();
           SpawnsPlayers = GameObject.FindGameObjectsWithTag("Spawn");
           mainSceneInter = new MainSceneCtrlInter();

           playersMax = 8;

           PhotonNetwork.autoJoinLobby = true;

         //  Connect();
    }