コード例 #1
0
    public IEnumerator CoroutineSwitchStation(StationHandler currentStation, StationHandler destinationStation)
    {
        faderAC.SetBool("fade", true);
        yield return(new WaitForSeconds(.2f));

        currentStation.StopNarration();
        player.transform.position = destinationStation.playerPositionTransform.position;
        player.transform.LookAt(destinationStation.gameObject.transform);
        faderAC.SetBool("fade", false);
        destinationStation.StartNarration();
        this.currentStation = destinationStation;
    }