예제 #1
0
        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);
        }
예제 #2
0
 private void Update()
 {
     if (toolHandler.EquippedTool.ToolType != Enums.ToolTypes.Hand)
     {
         movePlaceable.RemoveAttachedPlaceable();
     }
 }
예제 #3
0
        protected void ReduceAmtPlaceable()
        {
            Item item = inventory.TakeFromInventory(ItemGuid, 1);

            if (item != null && item.Amt <= 0)
            {
                movePlaceable.RemoveAttachedPlaceable();
            }
        }