Beispiel #1
0
    public void Reload()
    {
        audioSource.Play();
        var activeScene = SceneManager.GetActiveScene();

        SceneSwith.SwithToScene(activeScene.buildIndex);
    }
Beispiel #2
0
    void Start()
    {
        instace = this;

        animator = GetComponent <Animator>();

        if (shouldPlayOpeningAnimation)
        {
            animator.SetTrigger("Opening");
        }
    }
Beispiel #3
0
 void OnTriggerEnter(Collider other)
 {
     if (_win)
     {
         if (costil)
         {
             SceneSwith.SwithToScene(3);
             costil = false;
         }
     }
 }
Beispiel #4
0
    public void LoadLevl(int LevlIndex)
    {
        if (costil)
        {
            if (audioSource != null)
            {
                audioSource.Play();
            }

            SceneSwith.SwithToScene(LevlIndex);
            costil = false;
        }
    }
Beispiel #5
0
 public void EndDialog()
 {
     SceneSwith.SwithToScene(2);
 }