Ejemplo n.º 1
0
 protected virtual void Start()
 {
     if (BlockCluster == null && !isPreview)
     {
         RegisterBlockCluster(BlockCluster.SpawnCluster(transform.position));
     }
 }
Ejemplo n.º 2
0
        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);
        }