Example #1
0
 public void Gallery()
 {
     if (OnCardClicked)
     {
         TKSceneManager.ChangeScene("GalleryScene");
     }
     else
     {
         OnBackCardClicked();
     }
 }
Example #2
0
 public void OnSubmitButtonClicked()
 {
     if (passwordInput.text.Equals(CORRECT_ANSWER))
     {
         TKSceneManager.ChangeScene("StartScene");
     }////************************************************************
     else
     {
         hint.text          = INCORRECT_ANSWER;
         hint.color         = Color.red;
         passwordInput.text = "";
     }
 }
Example #3
0
 public void checkPassword()
 {
     if (password == inputPassword.text)
     {
         {
             TKSceneManager.ChangeScene(nextScene);
         }
     }
     else
     {
         inputPassword.text = "";
         checkCorrect.gameObject.SetActive(true);
     }
 }
Example #4
0
 public void OnSubmitButtonClicked()
 {
     if (pwInp.text.Equals(correctAnswer))
     {
         TKSceneManager.ChangeScene(nextLevelSceneFileName);
     }
     else
     {
         pwInp.text     = "";
         hintText.text  = ACCESSDENIED_TEXT;
         hintText.color = Color.red;
         if (hintTextCoroutine != null)
         {
             StopCoroutine(hintTextCoroutine);
         }
         hintTextCoroutine = StartCoroutine(ChangeHintTextBack());
     }
 }
Example #5
0
    public void OnSubmitButtonClicked()
    {
        if (passwordInput.text == password)
        {
            TKSceneManager.ChangeScene(nextLevelSceneFilename);
        }
        else
        {
            passwordInput.text  = "";
            hintTextField.text  = ACCESS_DENIED_TEXT;
            hintTextField.color = Color.red;

            if (hintTextCoroutine != null)
            {
                StopCoroutine(hintTextCoroutine);
            }
            hintTextCoroutine = StartCoroutine(ChangeHintTextBack());
        }
    }
Example #6
0
    public void OnSubmitButtonClicked()
    {
        string answer = passwordInput.text;

        if (CheckAnswer(answer))
        {
            TKSceneManager.ChangeScene(nextSceneName);
        }
        else
        {
            textMessage.text   = MESSAGE;
            textMessage.color  = Color.red;
            passwordInput.text = "";

            if (hintCoroutine == null)
            {
                hintCoroutine = StartCoroutine(ChangeHintTextBack(2f));
            }
        }
    }
Example #7
0
 public void Next()
 {
     if (OnCardClicked)
     {
         var currentBossID = PlayerPrefs.GetInt("CurrentBoss", 1);
         currentBossID++;
         if (currentBossID >= listCard.Count)
         {
             TKSceneManager.ChangeScene("StartScene");
         }
         else
         {
             PlayerPrefs.SetInt("CurrentBoss", currentBossID);
             TKSceneManager.ChangeScene("GameScene");
         }
     }
     else
     {
         OnBackCardClicked();
     }
 }
Example #8
0
 //  -------------------------- lose panel ---------------------------
 public void TryAgain()
 {
     TKSceneManager.ChangeScene(SceneManager.GetActiveScene().name);
 }
Example #9
0
 public void Begin()
 {
     TKSceneManager.ChangeScene("Level1");
 }
 public void ButtonPlayOnClick()
 {
     TKSceneManager.ChangeScene("PathScene");
 }
Example #11
0
 public void OnBeginButtonClicked()
 {
     TKSceneManager.ChangeScene(TKSceneManager.LEVEL01);
 }
Example #12
0
 public void OnStartButtonClicked()
 {
     TKSceneManager.ChangeScene("Level1");
 }
Example #13
0
 public void OnRetryButtonTapped()
 {
     TKSceneManager.ChangeScene("PlayScene");
 }
Example #14
0
 public void NextScene()
 {
     TKSceneManager.ChangeScene("Level2");
 }
Example #15
0
 public void ButtonBackClicked()
 {
     TKSceneManager.ChangeScene("StartScene");
 }
Example #16
0
    private IEnumerator AnimateGameOver()
    {
        yield return(new WaitForSeconds(1));

        TKSceneManager.ChangeScene("GameOverScene");
    }
Example #17
0
 public void OnBeginButtonClicked()
 {
     TKSceneManager.ChangeScene("level 1");
 }
Example #18
0
 public override void OnPointerClick(PointerEventData eventData)
 {
     AudioManagerScript.instance.Clicked();
     base.OnPointerClick(eventData);
     TKSceneManager.ChangeScene(thisLevel);
 }
Example #19
0
 public void Exit()
 {
     TKSceneManager.ChangeScene("StartScene");
 }
 public void Restart()
 {
     TKSceneManager.ChangeScene("Level" + levelNumber);
     score = 0;
 }
Example #21
0
 public void OnHomeButtonTapped()
 {
     TKSceneManager.ChangeScene("StartScene");
 }
 public void ButtonBackInPreLevel()
 {
     TKSceneManager.ChangeScene("PathScene");
 }
Example #23
0
    public IEnumerator AnimateGameOver()
    {
        yield return(new WaitForSeconds(1f));

        TKSceneManager.ChangeScene("End Scene");
    }
Example #24
0
 public void OnReplayButtonTapped()
 {
     ReplayButton.enabled = false;
     TKSceneManager.ChangeScene("Gameplay Scene");
 }
Example #25
0
 public void ChangeSceneToGallery()
 {
     TKSceneManager.ChangeScene(galleryScene);
 }
Example #26
0
 public void OnStartButtonTapped()
 {
     TKSceneManager.ChangeScene("Gameplay Scene");
 }
 public void OutOfLevel()
 {
     TKSceneManager.ChangeScene("PathScene");
 }
Example #28
0
 public void ChangeSceneToStartScene()
 {
     TKSceneManager.ChangeScene(startScene);
 }
 public void ButtonNextInGameWin()
 {
     TKSceneManager.ChangeScene("Level" + levelUnlocked);
 }
Example #30
0
 public void Begin()
 {
     //SceneManager.LoadScene ("Level1");
     TKSceneManager.ChangeScene("Level1");
 }