protected override void OnBlockPlaced(GameObject parent) { BlockBase parentComponent = parent.GetComponent <BlockBase>(); if (parentComponent != null) { parentComponent.AddAttached(this); AttachedTo = parent; } }