This file contains hidden or 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
| @echo off | |
| Set ApplicationPath=%1 | |
| cmd /min /C "set __COMPAT_LAYER=RUNASINVOKER && start "" %ApplicationPath%" |
This file contains hidden or 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 CopperStudios.Tools | |
| { | |
| public class SingletonMonoBehaviour<T> : MonoBehaviour where T : MonoBehaviour | |
| { | |
| private static T instance; | |
| public static T Instance | |
| { |
This file contains hidden or 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 UnityEditor; | |
| using UnityEditor.AssetImporters; | |
| using UnityEngine; | |
| namespace CopperStudios.Tools | |
| { | |
| [ScriptedImporter(1, FileExtension)] | |
| public class CustomIcon : ScriptedImporter |
This file contains hidden or 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; | |
| 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) |
This file contains hidden or 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.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) |