Esempio n. 1
0
 /// <summary>
 /// Destroys the prioritizable mesh renderer.
 /// </summary>
 public static void DestroyInstance()
 {
     Instance?.Dispose();
     Instance = null;
 }
Esempio n. 2
0
 /// <summary>
 /// Applied after OnSpawn runs.
 /// </summary>
 internal static void Postfix(TerrainBG __instance)
 {
     TerrainMeshRenderer.DestroyInstance();
     TerrainMeshRenderer.Instance = new TerrainMeshRenderer(__instance);
 }