示例#1
0
 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));
 }
示例#2
0
    private void Awake()
    {
        instance = this;

        if (!skipGameInTransition)
        {
            anim.SetInteger("dir", direction.toInt());
            anim.SetTrigger("open");
        }
        else
        {
            skipGameInTransition = false;
        }
    }