Skip to content

Instantly share code, notes, and snippets.

@echo off
Set ApplicationPath=%1
cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %ApplicationPath%"
using UnityEngine;
namespace CopperStudios.Tools
{
public class SingletonMonoBehaviour<T> : MonoBehaviour where T : MonoBehaviour
{
private static T instance;
public static T Instance
{
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.AssetImporters;
using UnityEngine;
namespace CopperStudios.Tools
{
[ScriptedImporter(1, FileExtension)]
public class CustomIcon : ScriptedImporter
using System.Collections;
namespace CopperStudios.Utility;
public class RandomList<T> : IEnumerable<T>
{
private readonly Random listRandom = new(Guid.NewGuid().GetHashCode());
private readonly List<T> list;
public RandomList(IEnumerable<T> list)
using System.Numerics;
using SystemRandom = System.Random;
namespace CopperStudios.Tools;
public static class Random
{
private static readonly SystemRandom SystemRandom = new(new Guid().GetHashCode());
public static float Range(float min, float max)