add some extra assets FX and SFX
This commit is contained in:
@@ -10,7 +10,11 @@ public class craftingWorkbenchSystem : MonoBehaviour
|
||||
|
||||
public int workbenchID;
|
||||
|
||||
public bool setObjectCategoriesToCraftAvailableOnCurrentBench;
|
||||
public bool allowToCraftAllObjectsOnCurrentBench;
|
||||
|
||||
[Space]
|
||||
|
||||
public bool setObjectCategoriesToCraftAvailableOnCurrentBench;
|
||||
|
||||
public List<string> objectCategoriesToCraftAvailableOnCurrentBench = new List<string> ();
|
||||
|
||||
@@ -38,6 +42,8 @@ public class craftingWorkbenchSystem : MonoBehaviour
|
||||
|
||||
public bool storeCraftedObjectsOnInventoryBank;
|
||||
|
||||
public bool storeCraftedObjectsOnInventoryBankOnlyIfPlayerInventoryIsFull;
|
||||
|
||||
public inventoryBankSystem mainInventoryBankSystem;
|
||||
|
||||
[Space]
|
||||
@@ -62,9 +68,10 @@ public class craftingWorkbenchSystem : MonoBehaviour
|
||||
currentCraftingSystem.setCurrentcurrentCraftingWorkbenchSystem (this);
|
||||
|
||||
if (setObjectCategoriesToCraftAvailableOnCurrentBench) {
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (true, objectCategoriesToCraftAvailableOnCurrentBench);
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (true, objectCategoriesToCraftAvailableOnCurrentBench,
|
||||
allowToCraftAllObjectsOnCurrentBench);
|
||||
} else {
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (true, null);
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (true, null, allowToCraftAllObjectsOnCurrentBench);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,7 +91,7 @@ public class craftingWorkbenchSystem : MonoBehaviour
|
||||
if (currentCraftingSystem != null) {
|
||||
currentCraftingSystem.setCurrentcurrentCraftingWorkbenchSystem (null);
|
||||
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (false, null);
|
||||
currentCraftingSystem.setOpenFromWorkbenchState (false, null, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user