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 GetMainTextureThing : MonoBehaviour | |
{ | |
TerrainData mTerrainData; | |
int alphamapWidth; | |
int alphamapHeight; |
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 NicknameGenerator : MonoBehaviour | |
{ | |
public TextAsset examples; | |
public int segmentLength = 3; |
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 Maze : MonoBehaviour | |
{ | |
Node[,] maze; | |
public int width; | |
public int height; |
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
string PrintMe(){ | |
Dictionary<string,string> pictos = new Dictionary<string,string>(); | |
pictos.Add("ur", "โ"); | |
pictos.Add("ulr", "โด"); | |
pictos.Add("dlr", "โฌ"); | |
pictos.Add("udr", "โ"); | |
pictos.Add("lr", "โ"); | |
pictos.Add("udlr", "โผ"); | |
pictos.Add("dr", "โ"); | |
pictos.Add("dl", "โ"); |
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 UnityEngine.Events; | |
public class PulseOnBeat : MonoBehaviour { | |
public float minScale; | |
public float maxScale; |
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
-- Creates a table containing the values 1 through num | |
function tableOf(num) | |
local t = {} | |
for i=1,num do | |
t[i] = i | |
end | |
return t | |
end | |
-- Shuffles a table |
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
Shader "Custom/Blob" { | |
Properties { | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_PushTex ("Thing", 2D) = "white" {} | |
_Push ("Push", Range(-1,1)) = 0.0 | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" } | |
LOD 200 |
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 Walkabout : MonoBehaviour { | |
public float acceleration = 1; | |
public float friction; | |
public float radius; | |
Vector3 velocity; |
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 UnityEngine.UI; | |
public class FPS : MonoBehaviour { | |
Text text; | |
float smootheddt = 1 / 60; | |
float smoothvel; | |
List<float> last100; |
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 StretchProject : MonoBehaviour { | |
public Matrix4x4 originalProjection; | |
Camera cam; | |
[Range(1,2)] | |
public float stretch = 1; |