Exemplo n.º 1
0
 // Returns true if new object could be held
 public bool HoldAnObject(Holdable objectToHold)
 {
     //Debug.Log(this.name + " trying to hold " + objectToHold.name);
     if (holdingObject)
     {
         return(false);
     }
     currentObject = objectToHold;
     objectToHold.HeldBy(this);
     holdingObject = true;
     return(holdingObject);
 }