예제 #1
0
    void NewGame(FMVManager.Command c)
    {
        if (myvid == null)
        {
            MenuReady(c);
        }

        myvid.rp.transform.SetParent(transform);
        fmvman.PlaySong(new FMVManager.Command {
            file = "", type = FMVManager.CommandType.SONG
        });
        fmvman.SwitchRoom("intro", 1, 'a');
        YSpeed = 10.0f;
    }
예제 #2
0
    void enterRoom(NodeConnection nc)
    {
        RoomDestination rd;

        if (!roomDestinations.TryGetValue(nc.toPos[0].filename, out rd))
        {
            Debug.LogError("could not find room " + nc.toPos[0].filename);
            return;
        }
        Debug.Log("entering room " + rd.roomName);
        fmvman.QueueVideo(new FMVManager.Command {
            file = rd.fileName, type = FMVManager.CommandType.VIDEO, freezeFrame = true, fadeInTime = rd.fade?1:0
        });
        fmvman.SwitchRoom(rd.roomName, rd.node, rd.facing);
    }