Inventory.CanCraftInstantly
#
Declarationpublic virtual bool CanCraftInstantly(GDTKRecipe recipe, Nullable<float> remainingSeconds)
#
ParametersName | Description |
---|---|
recipe | Recipe to check |
remainingSeconds | Seconds remaining the crafting (if already started) |
#
DescriptionCheck if a Recipe can be crafted instantly
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Inventory target) { bool result = target.CanCraftInstantly(InventoryDatabase.instance.recipes[0], 1); }
}