コード例 #1
0
 /// <summary> Check if this SenseGlove_Object is one of the "goal" objects; </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool IsTarget(SenseGlove_Grabable obj)
 {
     if (this.objectsToGet.Count > 0)
     {
         return(SenseGlove_DropZone.ListIndex(obj, this.objectsToGet) > -1);
     }
     return(true); //we can accept any kind of Object.
 }
コード例 #2
0
    /// <summary> Removes a specific object from this SenseGlove_DropZone </summary>
    /// <param name="grabable"></param>
    public virtual void RemoveObject(SenseGlove_Grabable grabable)
    {
        int objIndex = SenseGlove_DropZone.ListIndex(grabable, this.objectsInside);

        if (objIndex > -1)
        {
            this.RemoveObject(objIndex);
        }
    }
コード例 #3
0
 /// <summary> Check if this Object has already been detected. </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool IsDetected(SenseGlove_Grabable obj)
 {
     return(SenseGlove_DropZone.ListIndex(obj, this.objectsInside) > -1);
 }