private void Awake() { timer = GetComponent <TimerGame>(); waitConnectionPanel.gameObject.SetActive(false); waitingEnemyPanel.gameObject.SetActive(false); gameObject.SetActive(false); }
void Play() { TimerGame.Stop(); GenerateNumbers(); RandomImages(); Quest.Image = imageList1.Images[3]; }
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; } }
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; } }
public void Play() { Menu.SetActive(false); //Time.timeScale = 1f; TimerGame.SetActive(true); }
private void pictureBox1_Click(object sender, EventArgs e) { Restart(); TimerGame.Start(); }
//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(); }