add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftedObjectPlacedHelper.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingBlueprintInfo.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingBlueprintInfoTemplate.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingBlueprintInfoTemplateData.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingObjectButtonInfo.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingPlacementSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingSocket.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingStationSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -16,6 +16,8 @@ public class craftingSystem : MonoBehaviour
public bool ignoreCheckMaterialsNeededToCraftEnabled;
public bool spawnAllInventoryObjects;
[Space]
[Header ("Blueprints/recipes unlocked")]
[Space]
@@ -231,10 +233,37 @@ public class craftingSystem : MonoBehaviour
mainInventorymanager.removeObjectAmountFromInventory (objectIndex, amountToMove);
}
public bool checkIfPlayerInventoryIsFull (string inventoryObjectName, int inventoryObjectAmount)
{
bool isInventoryFull = mainInventorymanager.isInventoryFull ();
if (isInventoryFull) {
return true;
}
if (mainInventorymanager.existInventoryInfoFromName (inventoryObjectName)) {
inventoryInfo currentInventoryInfo = new inventoryInfo (mainInventorymanager.getInventoryInfoByName (inventoryObjectName));
if (currentInventoryInfo.inventoryGameObject != null) {
bool enoughFreeSpace = mainInventorymanager.checkIfObjectCanBeStored (currentInventoryInfo.inventoryGameObject, inventoryObjectAmount);
return enoughFreeSpace;
} else {
print ("WARNING: Inventory object called " + inventoryObjectName + " not found or is not configured properly in the inventory list manager");
}
} else {
print ("WARNING: Inventory object called " + inventoryObjectName + " not found or is not configured properly in the inventory list manager");
}
return false;
}
public void giveInventoryObjectToCharacter (string objectName, int objectAmount)
{
applyDamage.giveInventoryObjectToCharacter (playerGameObject, objectName, objectAmount,
positionToSpawnObjectsIfNotSpaceOnInventory, 0, 2, ForceMode.Force, 0, false, false, false);
positionToSpawnObjectsIfNotSpaceOnInventory, 0, 2, ForceMode.Force, 0, spawnAllInventoryObjects, false, true);
}
public List<inventoryInfo> getInventoryList ()
@@ -612,10 +641,12 @@ public class craftingSystem : MonoBehaviour
mainCraftingUISystem.setCraftObjectInTimeInfoList (newCraftObjectInTimeSimpleInfoList);
}
public void setOpenFromWorkbenchState (bool state, List<string> newObjectCategoriesToCraftAvailableOnCurrentBench)
public void setOpenFromWorkbenchState (bool state, List<string> newObjectCategoriesToCraftAvailableOnCurrentBench,
bool allowToCraftAllObjectsOnCurrentBenchValue)
{
if (mainCraftingUISystem != null) {
mainCraftingUISystem.setOpenFromWorkbenchState (state, newObjectCategoriesToCraftAvailableOnCurrentBench);
mainCraftingUISystem.setOpenFromWorkbenchState (state, newObjectCategoriesToCraftAvailableOnCurrentBench,
allowToCraftAllObjectsOnCurrentBenchValue);
menuOpenedFromWorkbench = state;
}

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
using UnityEngine.EventSystems;
public class craftingUISystem : ingameMenuPanel
{
@@ -16,6 +17,7 @@ public class craftingUISystem : ingameMenuPanel
public int amountOnRepareIngredientsButtonsToSpawn = 30;
public int amountOfObjectStatsButtonToSpawn = 0;
public int amountOfObjectToCraftInTimeButtonToSpawn = 20;
public int amountOfDisassembleIngredientsToSpawn = 20;
[Space]
[Header ("Workbench Settings")]
@@ -125,6 +127,8 @@ public class craftingUISystem : ingameMenuPanel
public bool menuOpenedFromWorkbench;
public bool allowToCraftAllObjectsOnCurrentBench;
public List<string> objectCategoriesToCraftAvailableOnCurrentBench = new List<string> ();
public craftingWorkbenchSystem currentCraftingWorkbenchSystem;
@@ -145,6 +149,8 @@ public class craftingUISystem : ingameMenuPanel
public List<objectStatButtonInfo> objectStatButtonInfoList = new List<objectStatButtonInfo> ();
public List<craftingObjectButtonInfo> currentDisassembleIngredientsInfoList = new List<craftingObjectButtonInfo> ();
[Space]
public List<craftObjectInTimeInfo> craftObjectInTimeInfoList = new List<craftObjectInTimeInfo> ();
@@ -158,6 +164,16 @@ public class craftingUISystem : ingameMenuPanel
[Space]
public bool useEventOnShowObjectPanelInfo;
public UnityEvent eventOnShowObjectPanelInfo;
[Space]
public bool useEventOnShowPressedObjectInfo;
public UnityEvent eventOnShowPressedObjectInfo;
[Space]
public UnityEvent eventOnOpenUpgradeObjectPanel;
public UnityEvent eventOnCloseUpgradeObjectPanel;
@@ -195,11 +211,15 @@ public class craftingUISystem : ingameMenuPanel
public RawImage currentObjectSelectedImage;
public GameObject craftObjectPanel;
public GameObject disassembleButton;
public GameObject repairButton;
public GameObject repairIngredientsPanel;
public GameObject disassembleIngredientsPanel;
[Space]
[Header ("UI Repair Components")]
[Space]
@@ -249,6 +269,13 @@ public class craftingUISystem : ingameMenuPanel
public GameObject inventoryPanelListElementPrefab;
[Space]
[Header ("Disassemble Ingredients Components")]
[Space]
public RectTransform disassembleIngredientsPanelList;
public GameObject isassembleIngredientsPanelListElementPrefab;
GameObject currentButtonObjectPressed;
@@ -293,6 +320,8 @@ public class craftingUISystem : ingameMenuPanel
repairIngredientsPanel.SetActive (false);
disassembleIngredientsPanel.SetActive (false);
eventOnShowBlueprintList.Invoke ();
updateCategoryObjectPanelInfo ();
@@ -305,6 +334,17 @@ public class craftingUISystem : ingameMenuPanel
disassembleButton.SetActive (false);
repairButton.SetActive (false);
setCraftObjectPanelActiveState (true);
}
void setCraftObjectPanelActiveState (bool state)
{
if (craftObjectPanel != null) {
if (craftObjectPanel.activeSelf != state) {
craftObjectPanel.SetActive (state);
}
}
}
//Upgrade Functions
@@ -733,7 +773,7 @@ public class craftingUISystem : ingameMenuPanel
eventOnObjectCreated.Invoke (newMessage);
checkButtonPressed (currentButtonObjectPressed);
checkButtonPressedOnEventSystem (currentButtonObjectPressed);
mainCraftingSystem.checkStateOnCraftObject ();
} else {
@@ -831,17 +871,37 @@ public class craftingUISystem : ingameMenuPanel
foreach (craftingWorkbenchSystem currentWorkbench in craftingWorkbenchSystemList) {
if (currentWorkbench.getWorkbenchID () == workbenchID) {
if (currentWorkbench.storeCraftedObjectsOnInventoryBank) {
currentWorkbench.addInventoryObjectByName (objectName, amountToObtain);
bool storeObjectOnWorkbenchResult = true;
storeObjectOnPlayerInventoryResult = false;
if (currentWorkbench.storeCraftedObjectsOnInventoryBankOnlyIfPlayerInventoryIsFull) {
if (!mainCraftingSystem.checkIfPlayerInventoryIsFull (objectName, amountToObtain)) {
storeObjectOnWorkbenchResult = false;
}
}
if (storeObjectOnWorkbenchResult) {
currentWorkbench.addInventoryObjectByName (objectName, amountToObtain);
storeObjectOnPlayerInventoryResult = false;
}
}
}
}
} else {
if (currentCraftingWorkbenchSystem.storeCraftedObjectsOnInventoryBank) {
currentCraftingWorkbenchSystem.addInventoryObjectByName (objectName, amountToObtain);
if (currentCraftingWorkbenchSystem != null && currentCraftingWorkbenchSystem.storeCraftedObjectsOnInventoryBank) {
bool storeObjectOnWorkbenchResult = true;
storeObjectOnPlayerInventoryResult = false;
if (currentCraftingWorkbenchSystem.storeCraftedObjectsOnInventoryBankOnlyIfPlayerInventoryIsFull) {
if (!mainCraftingSystem.checkIfPlayerInventoryIsFull (objectName, amountToObtain)) {
storeObjectOnWorkbenchResult = false;
}
}
if (storeObjectOnWorkbenchResult) {
currentCraftingWorkbenchSystem.addInventoryObjectByName (objectName, amountToObtain);
storeObjectOnPlayerInventoryResult = false;
}
}
}
}
@@ -990,7 +1050,7 @@ public class craftingUISystem : ingameMenuPanel
eventOnObjectCreated.Invoke (newMessage);
checkButtonPressed (currentButtonObjectPressed);
checkButtonPressedOnEventSystem (currentButtonObjectPressed);
}
craftObjectInTimeInfoList.Remove (newCraftObjectInTimeInfo);
@@ -1048,7 +1108,7 @@ public class craftingUISystem : ingameMenuPanel
{
if (showAllCategoriesActive) {
if (showingInventoryList) {
checkButtonPressed (currentInventoryInfoList [0].buttonGameObject);
checkButtonPressedOnEventSystem (currentInventoryInfoList [0].buttonGameObject);
} else {
if (useOnlyBlueprintsUnlocked) {
for (int i = 0; i < craftingObjectButtonInfoList.Count; i++) {
@@ -1056,8 +1116,9 @@ public class craftingUISystem : ingameMenuPanel
if (blueprintsUnlockedList.Contains (currentCraftingInfo.objectName)) {
if (isCurrentObjectCategoryAvailable (currentCraftingInfo.objectCategoryName)) {
checkButtonPressed (currentCraftingInfo.buttonGameObject);
checkButtonPressedOnEventSystem (currentCraftingInfo.buttonGameObject);
}
return;
}
}
@@ -1066,7 +1127,7 @@ public class craftingUISystem : ingameMenuPanel
craftingObjectButtonInfo currentCraftingInfo = craftingObjectButtonInfoList [i];
if (isCurrentObjectCategoryAvailable (currentCraftingInfo.objectCategoryName)) {
checkButtonPressed (currentCraftingInfo.buttonGameObject);
checkButtonPressedOnEventSystem (currentCraftingInfo.buttonGameObject);
return;
}
@@ -1084,7 +1145,7 @@ public class craftingUISystem : ingameMenuPanel
if (firstObjectIndexActive == -1 && currentInventoryInfo.buttonGameObject.activeSelf) {
if (canObjectBeCreated (currentInventoryInfo.objectCategoryName, currentInventoryInfo.objectName, 1, false)) {
checkButtonPressed (currentInventoryInfo.buttonGameObject);
checkButtonPressedOnEventSystem (currentInventoryInfo.buttonGameObject);
return;
} else {
@@ -1094,7 +1155,7 @@ public class craftingUISystem : ingameMenuPanel
}
if (firstObjectIndexActive != -1) {
checkButtonPressed (currentInventoryInfoList [firstObjectIndexActive].buttonGameObject);
checkButtonPressedOnEventSystem (currentInventoryInfoList [firstObjectIndexActive].buttonGameObject);
} else {
removeObjectPanelInfoContent ();
}
@@ -1105,7 +1166,7 @@ public class craftingUISystem : ingameMenuPanel
if (firstObjectIndexActive == -1 && currentCraftingInfo.buttonGameObject.activeSelf) {
if (isCurrentObjectCategoryAvailable (currentCraftingInfo.objectCategoryName) &&
canObjectBeCreated (currentCraftingInfo.objectCategoryName, currentCraftingInfo.objectName, 1, false)) {
checkButtonPressed (currentCraftingInfo.buttonGameObject);
checkButtonPressedOnEventSystem (currentCraftingInfo.buttonGameObject);
return;
} else {
@@ -1115,7 +1176,7 @@ public class craftingUISystem : ingameMenuPanel
}
if (firstObjectIndexActive != -1) {
checkButtonPressed (craftingObjectButtonInfoList [firstObjectIndexActive].buttonGameObject);
checkButtonPressedOnEventSystem (craftingObjectButtonInfoList [firstObjectIndexActive].buttonGameObject);
} else {
removeObjectPanelInfoContent ();
}
@@ -1238,6 +1299,24 @@ public class craftingUISystem : ingameMenuPanel
checkButton (buttonObject);
}
void checkButtonPressedOnEventSystem (GameObject buttonObject)
{
if (buttonObject != null) {
Button currentButton = buttonObject.GetComponent<Button> ();
if (currentButton != null) {
if (showDebugPrint) {
print (buttonObject.name);
}
currentButton.onClick.Invoke ();
EventSystem.current.SetSelectedGameObject (buttonObject);
}
}
}
public void checkButtonPressed (GameObject buttonObject)
{
if (showDebugPrint) {
@@ -1406,6 +1485,7 @@ public class craftingUISystem : ingameMenuPanel
disassembleButton.SetActive (canSetDisassembleUIElementsResult);
updateDisassembleIngredientsPanel (canSetDisassembleUIElementsResult);
//check repair UI elements
bool canSetRepairUIElementsResult = currentObjectIsBroken;
@@ -1454,6 +1534,8 @@ public class craftingUISystem : ingameMenuPanel
upgradeButton.SetActive (objectCanBeUpgradedResult);
}
} else {
updateDisassembleIngredientsPanel (false);
}
checkIfShowCurrentObjectMesh (true);
@@ -1466,6 +1548,72 @@ public class craftingUISystem : ingameMenuPanel
if (upgradePanelActive) {
updateObjectStatsPanelListInfo ();
}
if (useEventOnShowPressedObjectInfo) {
eventOnShowPressedObjectInfo.Invoke ();
}
if (!showingInventoryList) {
setCraftObjectPanelActiveState (true);
}
}
void updateDisassembleIngredientsPanel (bool state)
{
if (state) {
disassembleIngredientsPanel.SetActive (true);
for (int i = 0; i < currentDisassembleIngredientsInfoList.Count; i++) {
craftingObjectButtonInfo currentDisassembleIngredientInfo = currentDisassembleIngredientsInfoList [i];
if (currentDisassembleIngredientInfo.buttonGameObject.activeSelf) {
currentDisassembleIngredientInfo.buttonGameObject.SetActive (false);
currentDisassembleIngredientInfo.objectAssigned = false;
}
}
int currentCategoryIndex = craftingBlueprintInfoTemplateDataList.FindIndex (s => s.Name.Equals (currentObjectCategorySelectedName));
if (currentCategoryIndex > -1) {
int currentIndex = craftingBlueprintInfoTemplateDataList [currentCategoryIndex].craftingBlueprintInfoTemplateList.FindIndex (s => s.Name.Equals (currentObjectSelectedName));
if (currentIndex > -1) {
currentObjectCanBePlaced = craftingBlueprintInfoTemplateDataList [currentCategoryIndex].craftingBlueprintInfoTemplateList [currentIndex].useObjectToPlace;
List<craftingIngredientObjectInfo> disassembleIngredientObjectInfoList = craftingBlueprintInfoTemplateDataList [currentCategoryIndex].craftingBlueprintInfoTemplateList [currentIndex].disassembleIngredientObjectInfoList;
if (showDebugPrint) {
print ("list of ingredients found " + disassembleIngredientObjectInfoList.Count);
}
for (int i = 0; i < disassembleIngredientObjectInfoList.Count; i++) {
int currentAmount = mainCraftingSystem.getInventoryObjectAmountByName (disassembleIngredientObjectInfoList [i].Name);
if (currentAmount < 0) {
currentAmount = 0;
}
craftingObjectButtonInfo currentCraftingObjectButtonInfo = currentDisassembleIngredientsInfoList [i];
currentCraftingObjectButtonInfo.buttonGameObject.SetActive (true);
currentCraftingObjectButtonInfo.objectAssigned = true;
currentCraftingObjectButtonInfo.objectNameText.text = disassembleIngredientObjectInfoList [i].Name;
currentCraftingObjectButtonInfo.objectImage.texture = mainCraftingSystem.getInventoryObjectIconByName (disassembleIngredientObjectInfoList [i].Name);
currentCraftingObjectButtonInfo.amountAvailableToCreateText.text =
(disassembleIngredientObjectInfoList [i].amountRequired.ToString ());
}
}
}
} else {
disassembleIngredientsPanel.SetActive (false);
}
}
public bool canObjectBePlaced (string objectCategoryName, string objectName)
@@ -1522,6 +1670,16 @@ public class craftingUISystem : ingameMenuPanel
currentObjectDescriptionText.text = "";
currentObjectSelectedImage.texture = null;
if (showingInventoryList) {
disassembleButton.SetActive (false);
repairButton.SetActive (false);
placeObjectButton.SetActive (false);
} else {
setCraftObjectPanelActiveState (false);
}
}
void updateRepairIngredientsPanelListInfo ()
@@ -1774,6 +1932,10 @@ public class craftingUISystem : ingameMenuPanel
currentList [i].buttonGameObject.SetActive (setActiveResult);
}
}
if (useEventOnShowObjectPanelInfo) {
eventOnShowObjectPanelInfo.Invoke ();
}
}
public override void initializeMenuPanel ()
@@ -1801,7 +1963,8 @@ public class craftingUISystem : ingameMenuPanel
}
}
public void setOpenFromWorkbenchState (bool state, List<string> newObjectCategoriesToCraftAvailableOnCurrentBench)
public void setOpenFromWorkbenchState (bool state, List<string> newObjectCategoriesToCraftAvailableOnCurrentBench,
bool allowToCraftAllObjectsOnCurrentBenchValue)
{
if (menuOpenedFromWorkbench == state) {
return;
@@ -1809,6 +1972,8 @@ public class craftingUISystem : ingameMenuPanel
menuOpenedFromWorkbench = state;
allowToCraftAllObjectsOnCurrentBench = allowToCraftAllObjectsOnCurrentBenchValue;
if (menuOpenedFromWorkbench) {
objectCategoriesToCraftAvailableOnCurrentBench = newObjectCategoriesToCraftAvailableOnCurrentBench;
} else {
@@ -2141,6 +2306,17 @@ public class craftingUISystem : ingameMenuPanel
currentCraftObjectInTimeInfoList.Add (currentCraftingObjectButtonInfo);
}
for (int i = 0; i < amountOfDisassembleIngredientsToSpawn; i++) {
GameObject newButton = (GameObject)Instantiate (isassembleIngredientsPanelListElementPrefab, Vector3.zero, Quaternion.identity, disassembleIngredientsPanelList);
newButton.transform.localScale = Vector3.one;
newButton.transform.localPosition = Vector3.zero;
craftingObjectButtonInfo currentCraftingObjectButtonInfo = newButton.GetComponent<craftingObjectButtonInfo> ();
currentDisassembleIngredientsInfoList.Add (currentCraftingObjectButtonInfo);
}
UIElementSpawned = true;
}
}
@@ -2182,9 +2358,15 @@ public class craftingUISystem : ingameMenuPanel
return true;
} else {
if (menuOpenedFromWorkbench) {
if (objectCategoriesToCraftAvailableOnCurrentBench.Count > 0) {
if (objectCategoriesToCraftAvailableOnCurrentBench.Contains (categoryName)) {
return true;
if (allowToCraftAllObjectsOnCurrentBench) {
return true;
}
if (objectCategoriesToCraftAvailableOnCurrentBench != null) {
if (objectCategoriesToCraftAvailableOnCurrentBench.Count > 0) {
if (objectCategoriesToCraftAvailableOnCurrentBench.Contains (categoryName)) {
return true;
}
}
}

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingUISystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -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);
}
}
}

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingWorkbenchSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/craftingZoneSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/durabilityInfo.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/durabilityInfoOnFireWeapons.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/durabilityInfoOnMeleeShields.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/durabilityInfoOnMeleeWeapons.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/energyStationSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/fullCraftingBlueprintInfoTemplateData.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/materialExtractionStationSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/materialExtractionStationUISystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/materialsZoneSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/processStationSystem.cs
uploadId: 814740
uploadId: 889948

View File

@@ -46,7 +46,9 @@ public class simpleBreakObject : MonoBehaviour
public Shader transparentShader;
public string defaultShaderName = "Legacy Shaders/Transparent/Diffuse";
[Space]
public string colorPropertyName = "_Color";
[Space]
[Header ("Explosion Damage Settings")]
[Space]
@@ -161,6 +163,8 @@ public class simpleBreakObject : MonoBehaviour
float currentTimeToRemovePieces;
int colorID = -1;
private void Start ()
{
@@ -198,17 +202,19 @@ public class simpleBreakObject : MonoBehaviour
for (i = 0; i < rendererPartsCount; i++) {
currentMaterial = rendererParts [i];
Color alpha = currentMaterial.color;
if (currentMaterial.HasProperty (colorID)) {
Color alpha = currentMaterial.GetColor (colorID);
alpha.a -= Time.deltaTime / fadePiecesSpeed;
alpha.a -= Time.deltaTime / fadePiecesSpeed;
currentMaterial.color = alpha;
currentMaterial.SetColor (colorID, alpha);
//once the alpha is 0, remove the gameObject
if (currentMaterial.color.a > 0) {
allPiecesFaded = false;
}
}
//once the alpha is 0, remove the gameObject
if (alpha.a > 0) {
allPiecesFaded = false;
}
}
}
if (allPiecesFaded) {
if (destroyObjectAfterFade) {
@@ -309,6 +315,10 @@ public class simpleBreakObject : MonoBehaviour
if (transparentShader == null) {
transparentShader = Shader.Find (defaultShaderName);
}
if (colorID == -1) {
colorID = Shader.PropertyToID (colorPropertyName);
}
}
if (useExplosionAroundEnabled) {

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/simpleBreakObject.cs
uploadId: 814740
uploadId: 889948

View File

@@ -13,7 +13,8 @@ MonoImporter:
AssetOrigin:
serializedVersion: 1
productId: 40995
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
packageVersion: 3.77g
packageName: Game Kit Controller - Shooter Melee Adventure FPS TPS Creator 3D +
2.5D
packageVersion: 3.77h
assetPath: Assets/Game Kit Controller/Scripts/Crafting System/simpleDeviceStationSystem.cs
uploadId: 814740
uploadId: 889948