protected virtual void Start() { if (BlockCluster == null && !isPreview) { RegisterBlockCluster(BlockCluster.SpawnCluster(transform.position)); } }
public override void Init(Attachment targetAttachment, int baseAttachmentIndex, Vector3 rotation) { RegisterAttachment(targetAttachment); SwitchPreview(false); SetPosition(targetAttachment, baseAttachmentIndex, rotation); RegisterBlockCluster(BlockCluster.SpawnCluster(transform.position)); targetAttachment.block.Attach(this); OnBlockCreated(this); }