public void Reload() { audioSource.Play(); var activeScene = SceneManager.GetActiveScene(); SceneSwith.SwithToScene(activeScene.buildIndex); }
void Start() { instace = this; animator = GetComponent <Animator>(); if (shouldPlayOpeningAnimation) { animator.SetTrigger("Opening"); } }
void OnTriggerEnter(Collider other) { if (_win) { if (costil) { SceneSwith.SwithToScene(3); costil = false; } } }
public void LoadLevl(int LevlIndex) { if (costil) { if (audioSource != null) { audioSource.Play(); } SceneSwith.SwithToScene(LevlIndex); costil = false; } }
public void EndDialog() { SceneSwith.SwithToScene(2); }