This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Start | |
--- | |
// Paste this gist into https://books.yarnspinner.dev and click Download Book! | |
You hold in your hands a combination lock. Can you unlock it? | |
<<set $col1 = 0>> | |
<<set $col2 = 0>> | |
<<set $col3 = 0>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
// Speeds up the game's clock when a key is being held down. Extremely useful | |
// for skipping cutscenes, speeding up segments where the player walks to a | |
// destination, or any other place where you need to wait for something. | |
public class DebugTools : MonoBehaviour | |
{ | |
[SerializeField] KeyCode speedUpKey = KeyCode.Tab; | |
[SerializeField] float speedMultiplier = 10f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Demo : MonoBehaviour { | |
public DialogueRunner dialogueRunner; | |
private void LoadYarnFilesAndRun(string sourceFilesDirectoryPath) | |
{ | |
Debug.Log($"Compiling and loading Yarn files in {sourceFilesDirectoryPath}"); | |
var yarnFiles = Directory.EnumerateFiles(sourceFilesDirectoryPath, "*.yarn") | |
.Concat(Directory.EnumerateFiles(sourceFilesDirectoryPath, "*.yarn.txt")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UnityUI2019to2018.sed | |
# | |
# Jon Manning (@desplesda) 2020 | |
# | |
# Replaces instances of Unity UI components that refer to the package version of Unity UI (2019.3+), as opposed to the built-in version of Unity (2019.2 and earlier). Can be used on .prefab and .scene files. | |
# | |
# Usage: sed -f UnityUI2019to2018.sed SceneOrPrefab2019.unity > SceneOrPrefab2018.unity | |
# Button | |
s/m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}/m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Drop these methods into a class in a folder named 'Editor' | |
[MenuItem("X/Capture Game &1")] | |
static void CaptureGameScreenshot() | |
{ | |
EditorApplication.delayCall += () => | |
{ | |
var sceneName = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Fastfile uses the u3d gem to control Unity. You can find it at: | |
# https://github.com/DragonBox/u3d | |
# This is the minimum version number required. | |
# Update this, if you use features of a newer version | |
fastlane_version "2.117.1" | |
fastlane_require 'spaceship' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PropLinePlacer - a tool for placing lines of prefabs | |
// By Jon Manning | |
// MIT License | |
// Copyright (c) 2019 Secret Lab Pty Ltd | |
// Permission is hereby granted, free of charge, to any person obtaining a | |
// copy of this software and associated documentation files (the | |
// "Software"), to deal in the Software without restriction, including |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
NewerOlder