Beispiel #1
0
    public void Initialize(BoxJSON box, Drag3D D3D)
    {
        this.box = box;
        this.D3D = D3D;


        if (D3D != null)
        {
            D3D.RegisterOnMyCollisionEnterCallback(OnMyCollisionEnter);
            D3D.RegisterOnMyCollisionExitCallback(OnMyCollisionExit);
            D3D.RegisterOnDragStartCallback(OnDragStart);
            D3D.RegisterOnDragEndCallback(OnDragEnd);
        }
        else
        {
            Debug.LogError("Null D3D in Product Aesthetics");
        }
    }