- Start at default curve.
- Ctrl-click-drag any point in right-half to bend it until a point intersects with desired mhz/voltage.
- Select point and adjust to perfection using shift-up-down.
- Shift-click-drag empty space and select points (including selected point) on the right. Selected point should be left-most point.
- Shift-Enter twice to flatten all points in selection area. They will flatten to match the selected point.
- Adjust if required.
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; | |
public class PoolList<T> | |
{ | |
public List<(bool IsAvailable, T type)> Pool = new(); | |
public (bool success, (bool IsAvailable, T instance) item) TryGetFromPool(out T value) | |
{ | |
for (int i = 0; i < Pool.Count; i++) |
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; | |
// https://gist.github.com/st4rdog/40fc14a8a256c2376ba121bca33d7571 | |
// Gets TerrainLayers assets used on selected terrain and applies tint/color. | |
// TerrainLayer color can be changed in Debug inspector view. | |
public class TerrainColorTint : MonoBehaviour | |
{ | |
public List<Terrain> Terrains = new(); | |
public List<Color> TargetColors = new(); |
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
Privacy Policy for One Brutal Dungeon | |
No Data Collection: | |
One Brutal Dungeon does not collect, store, or transmit any user data. | |
Contact: | |
If you have any questions or concerns regarding this Privacy Policy, please contact us at [email protected]. |
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
// Drop-in replacement for List<T>. Presized List so no garbage when adding/removing. | |
// Further reading: | |
// - Collections without the boxing - https://www.jacksondunstan.com/articles/5148 | |
// - https://stackoverflow.com/questions/3737997/why-implement-ienumerablet-if-i-can-just-define-one-getenumerator | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
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
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class FPSCounter : MonoBehaviour | |
{ | |
public enum DeltaTimeType | |
{ | |
Smooth, |
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; | |
/* Example usage: | |
public FSM GameFSM = new(); | |
private void Awake() | |
{ | |
GameFSM.AddState("Init", |
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 SmoothMouseLook : MonoBehaviour | |
{ | |
private List<float> _xBuffer = new List<float>(); | |
private List<float> _yBuffer = new List<float>(); | |
private int _bufferIndex; |
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
// Created by lordofduct - https://forum.unity.com/threads/recommended-event-system.856294/#post-5644981 | |
// | |
// Usage example: | |
// | |
// public delegate void OnDiedEvent(GameObject go); | |
// | |
// Messaging<OnDiedEvent>.Trigger?.Invoke(gameObject); | |
// | |
// Messaging<OnDiedEvent>.Register(go => { | |
// Debug.Log($"{go.name} died."); |
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.Generic; | |
using UnityEngine.UI; | |
namespace UIGradient | |
{ | |
[AddComponentMenu("UI/Effects/Gradient")] | |
public class Gradient : BaseMeshEffect | |
{ |
NewerOlder