private void OnEnable() { if (canPlaceMaterial == null && m_canPlaceMaterial != null) { canPlaceMaterial = m_canPlaceMaterial; } if (cannotPlaceMaterial == null && m_cannotPlaceMaterial != null) { cannotPlaceMaterial = m_cannotPlaceMaterial; } if (houseHoldItemDataID == -9999) { gameObject.SetActive(false); } else { RegisterOriginalMaterials(); MainGameManager.AddObject(this); } }