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; | |
using System.Collections; | |
using UnityEngine.UIElements; | |
public class Despawner : MonoBehaviour { | |
public Manager manager; | |
private void Update() { | |
if (!Input.GetMouseButtonUp(1)) { |
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
// Original shader by @bgolus, modified slightly by @alexanderameye for URP, modified slightly more | |
// by @gravitonpunch for ECS/DOTS/HybridRenderer. | |
// https://twitter.com/bgolus | |
// https://medium.com/@bgolus/the-quest-for-very-wide-outlines-ba82ed442cd9 | |
// https://alexanderameye.github.io/ | |
// https://twitter.com/alexanderameye/status/1332286868222775298 | |
Shader "Hidden/Outline" | |
{ | |
Properties |
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 ActionTrigger : MonoBehaviour | |
{ | |
public enum TriggerType | |
{ | |
None, | |
Start, |
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 Splines.Habrador; | |
using Telia.Core; | |
using Telia.Environment; | |
using UnityEngine; | |
public class VisualizeSunTable : MonoBehaviour | |
{ | |
[Min(1f)] public float length; | |
public Material lineMat; |
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.Generic; | |
using UnityEngine; | |
namespace Stuff { | |
public class Day { | |
public int month; | |
public int day; | |
public Day(int p_month, int p_day) { |
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
//#define LOG | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Text; | |
using AptGames; | |
using TerrorSquid.BulletSystem; | |
using UnityEngine; |
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
//#define LOG_BULLETS | |
//#define OUTOFBOUNDS | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using TerrorSquid.Configs; | |
using UnityEngine; | |
using UnityEngine.Rendering; |
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; | |
namespace TerrorSquid.Collisions { | |
public static class CoordsRadius1 { | |
public static readonly Vector3[] coords = { | |
new Vector3(-1, -1, -1).normalized, | |
new Vector3(0, -1, -1).normalized, | |
new Vector3(1, -1, -1).normalized, | |
new Vector3(-1, -1, 0).normalized, |
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 "Sprite/Distort Aura" { | |
Properties{ | |
[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {} | |
_Distort("Distort Texture", 2D) = "grey" {} | |
_Color("Color", Color) = (1, 0, 1, 1) | |
_Offset("Offset", Range(-4,10)) = 0 | |
_Multiplier("Sprite Multiplier", Range(-2,2)) = 1 | |
_Scale("Distort Scale", Range(0,10)) = 3.2 | |
_SpeedX("Speed X", Range(-10,10)) = 2 | |
_SpeedY("Speed Y", Range(-10,10)) = -3.2 |
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.Generic; | |
using UnityEngine; | |
public enum State { | |
Idle = 0, | |
InMenu = 1, | |
InGame = 2, | |
InGameMuffled = 3, | |
EndGame = 4, |
NewerOlder