Exemplo n.º 1
0
 /// <summary>
 /// Creates the singleton instance of this class.
 /// </summary>
 /// <param name="mask">The scene partitioner layer to use.</param>
 internal static void Init(ScenePartitionerLayer mask)
 {
     Cleanup();
     Instance = new FastGroupProber(mask);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Destroys the singleton instance.
 /// </summary>
 internal static void Cleanup()
 {
     Instance?.Dispose();
     Instance = null;
 }