コード例 #1
0
    // ----- Handle placement of object via mouse -----

    public void AddObjectToMouse(PlaceableObject newObject, float vert)
    {
        objectOnMouse  = newObject;
        verticalOffset = vert;
        newObject.AttachToMouse();
        isMouseOccupied = true;
        StartCoroutine(DelayPlacement());
    }
コード例 #2
0
ファイル: ObjectManager.cs プロジェクト: lizhidong815/RobotVR
 public void AddObjectToMouse(PlaceableObject newObject)
 {
     objectOnMouse = newObject;
     newObject.AttachToMouse();
 }