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
JOSEPH: Did I hear a dog? What's your dog's name? | |
+ CONWAY: His name is Homer. | |
~ dog_name = "Homer" | |
JOSEPH: Bit of a shuffle or a drag in Homer's step — kind of an old one isn't he? | |
+ CONWAY: Her name is Blue. | |
~ dog_name = "Blue" | |
JOSEPH: Blue sounds like a sweet old hound. I used to know a dog like that. |
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
DialogWindow.Display("JOSEPH: Did I hear a dog? What's your dog's name?"); | |
if(DialogWindow.Button("CONWAY: His name is Homer.")) { | |
dog_name = "Homer"; | |
DialogWindow.Display("JOSEPH: Bit of a shuffle or a drag in Homer's step — kind of an old one isn't he?"); | |
} else if(DialogWindow.Button("CONWAY: Her name is Blue.")) { | |
dog_name = "Blue"; | |
DialogWindow.Display("JOSEPH: Blue sounds like a sweet old hound. I used to know a dog like that."); | |
} |
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
import themidibus.*; | |
MidiBus launchpad; | |
MidiBus wavetable; | |
int LED_OFF = 12; | |
int LED_RED_LOW = 13; | |
int LED_RED_FULL = 15; | |
int LED_AMBER_LOW = 29; | |
int LED_AMBER_FULL = 63; |
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; | |
using System.Collections; | |
public class PingPongTransformAnimation : MonoBehaviour | |
{ | |
public enum Easing { None, Hermite, Sinerp, Coserp, Berp, SmoothStep, | |
CircleLerp }; | |
public Easing easing = Easing.None; | |
public Vector3 positionChangePerSecond; |
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; | |
using System.Collections; | |
public class PrefabGenerator : MonoBehaviour | |
{ | |
public GameObject prefab; | |
public Transform position; | |
public string triggerTag; | |
void OnTriggerEnter(Collider other) |
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; | |
using System.Collections; | |
public class AnimateTransform : MonoBehaviour | |
{ | |
public float speed = 1; | |
public Vector3 positionChangePerSecond; | |
public Vector3 rotationChangePerSecond; | |
public Vector3 scaleChangePerSecond; |
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; | |
using System.Collections; | |
public class Flashlight : MonoBehaviour { | |
public AudioClip switchSound; | |
void Update () { | |
if(Input.GetKeyDown(KeyCode.F)) | |
{ | |
audio.PlayOneShot(switchSound); |
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; | |
using System.Collections; | |
public class Conversation : MonoBehaviour { | |
public GUISkin skin; | |
string scene = "start"; | |
void OnGUI() | |
{ |
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; | |
using System.Collections; | |
public class Footsteps : MonoBehaviour { | |
public AudioClip[] footsteps; | |
public CharacterController controller; | |
float stepTimer = 0; | |
int lastIndex = 0; | |