private void TargetUpdate() { if (lpmTarget != target) { lpmTarget = target as LowPolyMesh; currentSubMeshes = new LowPolySubMesh[lpmTarget.SubMeshCount]; lpmTarget.GetSubMeshes(currentSubMeshes); } }
void OnEnable() { lowPolyMesh = target as LowPolyMesh; }