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
#if UNITY_EDITOR | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEditor; | |
public class FontSwitcher : EditorWindow | |
{ | |
[MenuItem("Font/Show Window")] | |
public static void ShowFontWindow() | |
{ |
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; | |
public class ShipCamera : MonoBehaviour | |
{ | |
public GameObject m_Ship; | |
public Vector3 m_RelativePos; | |
void LateUpdate() | |
{ | |
//float scale = 0.05f; // Framerate dependent code, bad. |
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
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), |