Ejemplo n.º 1
0
    protected override void OnBlockPlaced(GameObject parent)
    {
        BlockBase parentComponent = parent.GetComponent <BlockBase>();

        if (parentComponent != null)
        {
            parentComponent.AddAttached(this);
            AttachedTo = parent;
        }
    }