This file contains hidden or 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 UnityEngine; | |
using UnityEngine.Rendering.PostProcessing; | |
[Serializable] | |
[PostProcess(typeof(GrayscaleRenderer), PostProcessEvent.AfterStack, "Custom/Grayscale")] | |
public sealed class Grayscale : PostProcessEffectSettings | |
{ | |
[Range(0f, 1f), Tooltip("Grayscale effect intensity.")] | |
public FloatParameter blend = new FloatParameter { value = 0.5f }; |
This file contains hidden or 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 ColourMix : MonoBehaviour { | |
public Color myColour; | |
public float r, g, b; | |
// Update is called once per frame |
This file contains hidden or 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 TurnObject_delayOrder : MonoBehaviour | |
{ | |
public List<GameObject> objects = new List<GameObject>(); | |
public bool hideOnStart = false; | |
public float delay; |
This file contains hidden or 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 GridMaker : MonoBehaviour | |
{ | |
public GameObject square; | |
public List<GameObject> squares = new List<GameObject>(); |
This file contains hidden or 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 Boid : MonoBehaviour | |
{ | |
public List<GameObject> boids = new List<GameObject>(); | |
Rigidbody rb; | |
void Start() |
This file contains hidden or 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 MazeGen : MonoBehaviour | |
{ | |
public GameObject cellSprite; | |
public bool[,] grid, nextGen; | |
public GameObject[,] sprites; | |
public int total; |
This file contains hidden or 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 System.IO; | |
using UnityEngine; | |
public class MosGen : MonoBehaviour | |
{ | |
public GameObject cube; | |
public GameObject cellSprite; | |
public bool[,] grid, nextGen; |
This file contains hidden or 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 GameOfLife : MonoBehaviour | |
{ | |
public GameObject cellPrefab; | |
public GameObject[,] cellSprites; | |
public int width = 10; | |
private bool[,] gen; | |
private bool[,] newGen; |
This file contains hidden or 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 CamZoom : MonoBehaviour | |
{ | |
bool isNear = false; | |
float camSize = 5; |
This file contains hidden or 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 ControlTrail : MonoBehaviour | |
{ | |
public TrailRenderer myTrail; | |
bool showTrail = false; | |
void Update() |