void SplitMesh() { if (transform.parent.TryGetComponent <TetMesh>(out tm)) { tm.SplitMesh(this.gameObject); } else { Debug.LogError("A volume mesh must be attached to this gameObject parent"); } }