public static void LoadScene(string name, ExitDir dir = ExitDir.RIGHT) { direction = dir; instance.anim.SetInteger("dir", dir.toInt()); instance.anim.SetTrigger("close"); instance.StartCoroutine(instance.LoadSceneAsync(name)); }
private void Awake() { instance = this; if (!skipGameInTransition) { anim.SetInteger("dir", direction.toInt()); anim.SetTrigger("open"); } else { skipGameInTransition = false; } }