add some extra assets FX and SFX
This commit is contained in:
@@ -749,8 +749,16 @@ public class pickUpObject : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
playerInventoryManager.setCurrentPickupGameObject (gameObject);
|
||||
|
||||
inventoryAmountPicked = playerInventoryManager.tryToPickUpObject (inventoryObjectManager.inventoryObjectInfo);
|
||||
|
||||
if (ignoreMessagesAndDestroyPickupActiveState) {
|
||||
removePickupFromLevel ();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (showDebugPrint) {
|
||||
print ("pickup amount " + inventoryAmountPicked);
|
||||
}
|
||||
@@ -763,7 +771,11 @@ public class pickUpObject : MonoBehaviour
|
||||
|
||||
return true;
|
||||
} else {
|
||||
playerInventoryManager.showInventoryFullMessage ();
|
||||
if (!playerInventoryManager.isIgnoreMaximumObjectAmountActive () && inventoryObjectManager.inventoryObjectInfo.setMaximumObjectAmount) {
|
||||
playerInventoryManager.showMaxObjectAmountReachedMessage (inventoryObjectManager.inventoryObjectInfo.Name);
|
||||
} else {
|
||||
playerInventoryManager.showInventoryFullMessage ();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
playerInventoryManager.showInventoryFullMessage ();
|
||||
@@ -772,6 +784,13 @@ public class pickUpObject : MonoBehaviour
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ignoreMessagesAndDestroyPickupActiveState;
|
||||
|
||||
public void setIgnoreMessagesAndDestroyPickupActiveState (bool state)
|
||||
{
|
||||
ignoreMessagesAndDestroyPickupActiveState = state;
|
||||
}
|
||||
|
||||
public void setDurabilityInfo (bool state, float newDurabilityAmount, float newMaxDurabilityAmount)
|
||||
{
|
||||
useDurability = state;
|
||||
|
||||
Reference in New Issue
Block a user