private bool RemoveCurrentPlaceable(GameObject objToAttach) { bool setNewPlaceable = true; if (movePlaceable.AttachedPlaceable != null) { // if we click on the same object then dont set the new attached object. if (movePlaceable.AttachedPlaceable.gameObject == objToAttach) { setNewPlaceable = false; } movePlaceable.RemoveAttachedPlaceable(); } return(setNewPlaceable); }
private void Update() { if (toolHandler.EquippedTool.ToolType != Enums.ToolTypes.Hand) { movePlaceable.RemoveAttachedPlaceable(); } }
protected void ReduceAmtPlaceable() { Item item = inventory.TakeFromInventory(ItemGuid, 1); if (item != null && item.Amt <= 0) { movePlaceable.RemoveAttachedPlaceable(); } }