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