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
int d = 10; | |
int led = 13; | |
int t = 0; | |
unsigned long lastMicros; | |
unsigned long deltaMicros; | |
double timeStep; | |
double timeUntil; |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public delegate float TweenFunc(float t); | |
public static class TweenUtils { | |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public static class Brainput{ | |
public static float GetAxis(int controller, int axis){ | |
return Input.GetAxis("joystick " + controller + " analog " + axis); | |
} | |
public static bool GetButton(int controller, int button){ |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// This is what our events look like | |
public delegate void AimTrackerEvent(Vector3 point, int playerNumber); | |
public class AimTracker : MonoBehaviour { | |
// These are all the events |
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
<events> | |
<spell>.onResolve(<spell>) | |
explode() | |
//removes 16 bytes from all entities within | |
//100 ms range | |
fireball() | |
//travels across the server and removes | |
//16 bytes from the first entity it touches |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Strings : MonoBehaviour { | |
public TextAsset dataText; | |
Dictionary<string, string> data; | |
// Use this for initialization |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System.IO; | |
public class TrucMuche : MonoBehaviour { | |
public string saveFile = "character.json"; | |
public CharacterSheet character; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class HighlightIfVisible : MonoBehaviour { | |
public Color visible; | |
public Color invisible; | |
// Use this for initialization |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
// Create an event type | |
public delegate void GenericEvent(); | |
public class EventThingy : MonoBehaviour { | |
// Create an event |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public enum EaseType { | |
In, | |
Out, | |
InOut | |
} | |
public enum EaseFunc { |