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
class Xorshift { | |
private var x:UInt; | |
private var y:UInt; | |
private var z:UInt; | |
private var w:UInt; | |
private var t:UInt; | |
public function new(x:UInt = 1234, y:UInt = 5678, z:UInt = 9876, w:UInt = 5432) { |
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; | |
using System.Collections.Generic; | |
using System.Xml; | |
using System.Xml.Serialization; | |
using System.IO; | |
using System.Security.Cryptography; | |
public class XPref { |
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 UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
using System.Collections; | |
public static class CacheManager { | |
[UnityEditor.MenuItem("Cache/Clear Caches")] | |
public static void Clear() { | |
Debug.LogWarning("Delete " + Application.persistentDataPath); |
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 UnityEditor; | |
using UnityEngine; | |
using System.IO; | |
namespace MPF.Editor | |
{ | |
public class TemplateGenerator: EditorWindow | |
{ | |
readonly string GeneralTemplate = | |
"using System.Collections;" + System.Environment.NewLine + |
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; | |
using System.Collections.Generic; | |
using Random = UnityEngine.Random; | |
public class MazeModel | |
{ | |
BlockMap _map = new BlockMap(); | |
public BlockMap Map => _map; |
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; | |
public static class LoopBreaker | |
{ | |
private static long[] _counts = new long[10]; | |
private static long Limit = 10000; | |
public static void Increment(int id = 0) | |
{ |
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 BezierCurve | |
{ | |
public Vector2[] ControlPoints { get; set; } | |
public BezierCurve(Vector2[] controlPoints) | |
{ | |
ControlPoints = controlPoints; |
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 UnityEditor; | |
using UnityEngine; | |
public static class AnimationConverter | |
{ | |
[MenuItem("Assets/Animation/CopyAnimationClipAsLegacy", true)] | |
public static bool ValidateCopyAnimationClipAsLegacy() | |
{ | |
return Selection.activeObject is AnimationClip; | |
} |
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 System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
public sealed class MeshOptimizerWindow : EditorWindow | |
{ | |
private GameObject _go; | |
[MenuItem("Window/PLATEAU Mesh Optimizer")] |
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 System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
public sealed class PlateauLod2FbxImporterWindow : EditorWindow | |
{ | |
[MenuItem("Window/PLATEAU LOD2 FBX Importer")] | |
public static void ShowWindow() |