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; | |
using System.Collections.Generic; | |
using System; | |
public class Math3d { | |
private static Transform tempChild = null; | |
private static Transform tempParent = null; | |
private static Vector3[] positionRegister; |
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
/*************************** | |
* fgRandom.cs | |
* | |
* C# Mersenne Twister implementation | |
* | |
* Based on https://en.wikipedia.org/wiki/Mersenne_Twister | |
* | |
* (c) Francois GUIBERT | |
* www.frozax.com | |
* |
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; | |
/// <summary> | |
/// Be aware this will not prevent a non singleton constructor | |
/// such as `T myT = new T();` | |
/// To prevent that, add `protected T () {}` to your singleton class. | |
/// | |
/// As a note, this is made as MonoBehaviour because we need Coroutines. | |
/// </summary> | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour |