Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     //tutorialPointer.SetBool("showPointer", true);
     triggerTarget = FindObjectOfType <TriggerTarget>();
     //numberOfTargets = GameObject.FindGameObjectsWithTag("Target").Length;
     fakePanel = FindObjectOfType <MyPanel>();
     fakePanel.PanelSwitch(false);
 }
Example #2
0
    //Subtract destroyed letters and load next level
    private IEnumerator SubtractLetter()
    {
        numberOfLetters--;
        if (numberOfLetters <= 0)
        {
            yield return(new WaitForSeconds(1.8f));

            fakePanel.PanelSwitch(true);
            yield return(new WaitForSeconds(2.0f));

            SceneManager.LoadScene(GetRandomLevel());
        }
        yield return(new WaitForSeconds(3f));
    }