Skip to content

Instantly share code, notes, and snippets.

@CriticalAngle
CriticalAngle / CriticalLerp.cs
Last active August 31, 2024 03:30
Critical Lerp
using System;
using System.Collections;
using JetBrains.Annotations;
using UnityEngine;
namespace CriticalAngleStudios.Lerp
{
public static class CriticalLerp
{
public static void Lerp<T>(
@CriticalAngle
CriticalAngle / Or.cs
Last active January 24, 2023 01:13
A type that allows multiple types to be stored in it and chosen as needed
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable CheckNamespace
namespace CriticalAngleStudios
{
public class Or<A, B>
{
/// <summary>
/// The private container of the `A` type.
@CriticalAngle
CriticalAngle / Variable.cs
Last active January 24, 2023 01:14
A simple class for managing a variable of any type.
// ReSharper disable MemberCanBePrivate.Global
using System;
using System.Collections.Generic;
namespace CriticalAngleStudios
{
/// <summary>
/// A simple class for managing a variable of any type.
/// </summary>
/// <typeparam name="T">The variable type.</typeparam>