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 stepCounter = 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; | |
using System.Collections; | |
public class CameraShake : MonoBehaviour { | |
public float shakeStrength = 5; | |
public float shake = 1; | |
Vector3 originalPosition; | |
void Start() |
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 SphereTrigger : MonoBehaviour { | |
void OnTriggerEnter(Collider other) { | |
renderer.material.color = Color.red; | |
if(other.gameObject.tag == "Player") { | |
Destroy(other.gameObject); | |
} |
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 TriggerSound : MonoBehaviour { | |
float targetVolume = 0; | |
void Start() { | |
audio.Play(); | |
} | |
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 SizeBox : MonoBehaviour { | |
float targetX; | |
// Use this for initialization | |
void Start () { | |
targetX = ShareCartOneThousand.MapX; | |
} |
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 PickUpObject : MonoBehaviour { | |
public Transform player; | |
public float throwForce = 10; | |
bool hasPlayer = false; | |
bool beingCarried = false; | |
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
// ============================================================ | |
// | |
// Program: ArdCore Rotating Pattern Emitter (multi-length) | |
// | |
// Description: Given a clock, output two patterns based on divisions | |
// of the clock. These patterns are preset but can be | |
// rotated with knobs. | |
// | |
// I/O Usage: | |
// Knob 1: Pattern 1 select |
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
// ============================================================ | |
// | |
// Program: ArdCore Rotating Pattern Emitter | |
// | |
// Description: Given a clock, output two patterns based on divisions | |
// of the clock. These patterns are preset but can be | |
// rotated with knobs. | |
// | |
// I/O Usage: | |
// Knob 1: Pattern 1 select |