예제 #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();
 }
예제 #2
0
 private void OnMouseDown()
 {
     OkEducationPanel.Resume();
     PlayerPrefs.SetInt("FirstStart", 1);
     FirstStart.EnableMenuAndQuestion();
     FirstStart.SetActiveStopCollider(false);
 }
예제 #3
0
 private void OnMouseDown()
 {
     transform.localScale = new Vector3(newSize, newSize, 1);
     OpenMenu.PressAtMenu();
     FirstStart.SetActiveStopCollider(true);
     FirstStart.DisableMenuAndQuestion();
     PlayerPrefs.DeleteKey("FirstStart");
     level_1.GetComponent <TapToLevel>().SelectForEducation();
 }