Toy maze solver (stateless) for https://store.steampowered.com/app/2060160/The_Farmer_Was_Replaced/
🏴☠️
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 MinimumFsmBasedAiController : MonoBehaviour | |
{ | |
public enum EState : byte | |
{ | |
START = 0, | |
PATROL, | |
INVESTIGATE, | |
ATTACK, |
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
// src* https://gist.github.com/andrew-raphael-lukasik/b00a59509cbe8fa2b15b1949fa4f4ad2 | |
using System.Collections.Generic; | |
public struct MinHeap <T> | |
where T : System.IComparable<T> | |
{ | |
List<T> _stack; | |
public int Length => _stack.Count; | |
public int Count => _stack.Count; |
Shader Graph files to create billboard trees with billboard shadows. Exported from Unity 2023.2 and Shader Graph 16.0.4
Note: Shaders written for default
Quad
meshes in mind.
To make sure shadows are being drawn always behind tree billboards change shadow material’s Sorting Priority to a negative value:
NewerOlder