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); }
protected void QueueVideo(string file) { fmvman.QueueVideo(new FMVManager.Command { file = myvidpath + file, tags = "puzzle" }); }