public static void ReturnMeshMaybe(GameObject gameObject) { MeshFilter meshFilter = gameObject.GetComponent <MeshFilter>(); if (meshFilter != null) { MeshPool.Add(gameObject.GetComponent <MeshFilter>().sharedMesh); } }
public static void ReturnMeshMaybe(GameObject gameObject) { MeshFilter meshFilter = gameObject.GetComponent <MeshFilter>(); if (meshFilter != null) { MeshPool.Add(gameObject.GetComponent <MeshFilter>().sharedMesh); } }