Skip to content

Instantly share code, notes, and snippets.

View r618's full-sized avatar

r618

View GitHub Profile
#if UNITY_EDITOR
using System.Reflection;
using UnityEngine;
using UnityEditor;
public class FontSwitcher : EditorWindow
{
[MenuItem("Font/Show Window")]
public static void ShowFontWindow()
{
@r618
r618 / ShipCamera.cs
Created September 29, 2018 10:37 — forked from davehampson/ShipCamera.cs
Framerate independent blend
using UnityEngine;
public class ShipCamera : MonoBehaviour
{
public GameObject m_Ship;
public Vector3 m_RelativePos;
void LateUpdate()
{
//float scale = 0.05f; // Framerate dependent code, bad.
@r618
r618 / now-play-this.rb
Created June 3, 2016 10:38 — forked from AlexandreRangel/now-play-this.rb
Sonic Pi 2.10 music code
use_synth :growl
64.times do
play rrand(30,90),
attack: rrand(4,16), sustain: rrand(2,4),
release: rrand(4,24), slide_shape: 3,
cutoff: rrand(62,112),
cutoff_slide: [2,4,8,12].choose,
res: rrand(0,0.99),
res_slide: [2,4,6].choose,
pan: rrand(-0.4,0.4),