Exemplo n.º 1
0
 private void OnMouseUp()
 {
     anim.Play("GoAway");
     if (!MessageSystemPlayingScene.IsStart)
     {
         menuPanel.SetActive(false);
         MessageSystemPlayingScene.StartGame();
         if (Conecting.Management == 0)
         {
             screen.SetActive(true);
         }
         else
         {
             StartCoroutine(EnButtons());
         }
         MessageSystemGameBlock.DisableAllBlock();
         Score.increeze();
     }
     else
     {
         MessageSystemGameBlock.StartAfterHit();
         MessageSystemPlayingScene.Player.GetComponent <Animator>().speed = 1;
         EnableButtons();
     }
     if (PlayerPrefs.HasKey("FirstStart"))
     {
         PauseGame.IsPause = false;
         pause.SetActive(true);
     }
     else
     {
         FirstStart.SetActiveStopCollider(true);
     }
     source.Play();
 }