add some extra assets FX and SFX
This commit is contained in:
@@ -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/Character Aspect Customization System/armorClothInventoryPrefabCreationSystem.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/armorClothOnInventory.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/armorClothPickup.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/armorClothPieceTemplate.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/armorClothPieceTemplateData.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/armorClothStatsInfo.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterAspectCustomizationTemplate.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterAspectCustomizationTemplateData.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -28,6 +28,12 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
|
||||
public List<characterCustomizationTypeButtonInfo> characterCustomizationTypeButtonInfoList = new List<characterCustomizationTypeButtonInfo> ();
|
||||
|
||||
[Space]
|
||||
|
||||
public bool useMultipleCharacterCustomization;
|
||||
|
||||
public List<multipleCharacterCustomizationTypeButtonInfo> multipleCharacterCustomizationTypeButtonInfoList = new List<multipleCharacterCustomizationTypeButtonInfo> ();
|
||||
|
||||
[Space]
|
||||
[Header ("UI Panel Settings")]
|
||||
[Space]
|
||||
@@ -63,6 +69,15 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
|
||||
public bool keepAllCharacterMeshesDisabledActive;
|
||||
|
||||
public string currentFullCharacterName = "";
|
||||
|
||||
[Space]
|
||||
[Header ("Events")]
|
||||
[Space]
|
||||
|
||||
public UnityEvent eventToSetNextCharacterModel;
|
||||
public UnityEvent eventToSetPreviousCharacterModel;
|
||||
|
||||
[Space]
|
||||
[Header ("Components")]
|
||||
[Space]
|
||||
@@ -78,6 +93,15 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
public Transform mainPlayerControllerTransform;
|
||||
|
||||
|
||||
inventoryCharacterCustomizationSystem mainInventoryCharacterCustomizationSystem;
|
||||
|
||||
bool mainInventoryCharacterCustomizationSystemAssigned;
|
||||
|
||||
bool currentFullCharacterAssigned;
|
||||
|
||||
List<characterCustomizationTypeButtonInfo> currentCharacterCustomizationTypeButtonInfoList = new List<characterCustomizationTypeButtonInfo> ();
|
||||
|
||||
|
||||
Transform mainPlayerCameraTransform;
|
||||
|
||||
playerController mainPlayerController;
|
||||
@@ -102,9 +126,44 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
|
||||
bool mouseCursorControllerManagerLocated;
|
||||
|
||||
bool setInitialClassChecked;
|
||||
bool setInitialClassChecked;
|
||||
|
||||
|
||||
public void copy ()
|
||||
{
|
||||
multipleCharacterCustomizationTypeButtonInfo newmultipleCharacterCustomizationTypeButtonInfo = new multipleCharacterCustomizationTypeButtonInfo ();
|
||||
|
||||
newmultipleCharacterCustomizationTypeButtonInfo.Name = "Alice";
|
||||
|
||||
for (int j = 0; j < characterCustomizationTypeButtonInfoList.Count; j++) {
|
||||
characterCustomizationTypeButtonInfo newcharacterCustomizationTypeButtonInfo = new characterCustomizationTypeButtonInfo ();
|
||||
|
||||
newcharacterCustomizationTypeButtonInfo.Name = characterCustomizationTypeButtonInfoList [j].Name;
|
||||
|
||||
for (int k = 0; k < characterCustomizationTypeButtonInfoList [j].characterCustomizationButtonInfoList.Count; k++) {
|
||||
characterCustomizationButtonInfo newcharacterCustomizationButtonInfo = new characterCustomizationButtonInfo (characterCustomizationTypeButtonInfoList [j].characterCustomizationButtonInfoList [k]);
|
||||
|
||||
|
||||
newcharacterCustomizationTypeButtonInfo.characterCustomizationButtonInfoList.Add (newcharacterCustomizationButtonInfo);
|
||||
}
|
||||
|
||||
newmultipleCharacterCustomizationTypeButtonInfo.characterCustomizationTypeButtonInfoList.Add (newcharacterCustomizationTypeButtonInfo);
|
||||
|
||||
}
|
||||
|
||||
|
||||
multipleCharacterCustomizationTypeButtonInfoList.Add (newmultipleCharacterCustomizationTypeButtonInfo);
|
||||
|
||||
updateComponent ();
|
||||
}
|
||||
|
||||
public void updateComponent ()
|
||||
{
|
||||
GKC_Utils.updateComponent (this);
|
||||
|
||||
GKC_Utils.updateDirtyScene ("Update Character Customization", gameObject);
|
||||
}
|
||||
|
||||
void Start ()
|
||||
{
|
||||
if (!characterCustomizationManagerAssigned) {
|
||||
@@ -112,17 +171,78 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
characterCustomizationManagerAssigned = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void checkSetFullCharacterAssigned ()
|
||||
{
|
||||
if (!currentFullCharacterAssigned) {
|
||||
if (useMultipleCharacterCustomization) {
|
||||
if (currentFullCharacterName.Equals ("")) {
|
||||
setMultipleCharacterCustomizationTypeButtonInfoByName (multipleCharacterCustomizationTypeButtonInfoList [0].Name);
|
||||
}
|
||||
} else {
|
||||
currentCharacterCustomizationTypeButtonInfoList = characterCustomizationTypeButtonInfoList;
|
||||
}
|
||||
|
||||
currentFullCharacterAssigned = true;
|
||||
}
|
||||
}
|
||||
|
||||
public void setMultipleCharacterCustomizationTypeButtonInfoByName (string characterName)
|
||||
{
|
||||
int fullCharacterIndex = multipleCharacterCustomizationTypeButtonInfoList.FindIndex (s => s.Name.Equals (characterName));
|
||||
|
||||
if (fullCharacterIndex > -1) {
|
||||
currentFullCharacterName = multipleCharacterCustomizationTypeButtonInfoList [fullCharacterIndex].Name;
|
||||
|
||||
currentCharacterCustomizationTypeButtonInfoList = multipleCharacterCustomizationTypeButtonInfoList [fullCharacterIndex].characterCustomizationTypeButtonInfoList;
|
||||
|
||||
if (useMultipleCharacterCustomization) {
|
||||
setCharacterCustomizationTypeButtonInfoListActiveState (fullCharacterIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void setCharacterCustomizationTypeButtonInfoListActiveState (int fullCharacterIndex)
|
||||
{
|
||||
int multipleCharacterCustomizationTypeButtonInfoListCount = multipleCharacterCustomizationTypeButtonInfoList.Count;
|
||||
|
||||
for (int i = 0; i < multipleCharacterCustomizationTypeButtonInfoListCount; i++) {
|
||||
List<characterCustomizationTypeButtonInfo> characterCustomizationTypeButtonInfoList =
|
||||
multipleCharacterCustomizationTypeButtonInfoList [i].characterCustomizationTypeButtonInfoList;
|
||||
|
||||
int characterCustomizationTypeButtonInfoListCount = characterCustomizationTypeButtonInfoList.Count;
|
||||
|
||||
for (int j = 0; j < characterCustomizationTypeButtonInfoListCount; j++) {
|
||||
List<characterCustomizationButtonInfo> characterCustomizationButtonInfoList =
|
||||
characterCustomizationTypeButtonInfoList [j].characterCustomizationButtonInfoList;
|
||||
|
||||
int characterCustomizationButtonInfoListCount = characterCustomizationButtonInfoList.Count;
|
||||
|
||||
for (int k = 0; k < characterCustomizationButtonInfoListCount; k++) {
|
||||
bool activeState = false;
|
||||
|
||||
if (i == fullCharacterIndex) {
|
||||
activeState = true;
|
||||
}
|
||||
|
||||
if (characterCustomizationButtonInfoList [k].buttonObject.activeSelf != activeState) {
|
||||
characterCustomizationButtonInfoList [k].buttonObject.SetActive (activeState);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void checkSetInitialClass ()
|
||||
{
|
||||
int categoryIndex = characterCustomizationTypeButtonInfoList.FindIndex (s => s.Name.Equals (initialClassName));
|
||||
checkSetFullCharacterAssigned ();
|
||||
|
||||
int categoryIndex = currentCharacterCustomizationTypeButtonInfoList.FindIndex (s => s.Name.Equals (initialClassName));
|
||||
|
||||
if (categoryIndex > -1) {
|
||||
|
||||
characterCustomizationTypeButtonInfo currentCategoryButton = characterCustomizationTypeButtonInfoList [categoryIndex];
|
||||
characterCustomizationTypeButtonInfo currentCategoryButton = currentCharacterCustomizationTypeButtonInfoList [categoryIndex];
|
||||
|
||||
int currentIndex = currentCategoryButton.characterCustomizationButtonInfoList.FindIndex (s => s.Name.Equals (initialArmorClothName));
|
||||
|
||||
@@ -205,10 +325,12 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
{
|
||||
currentButtonObjectPressed = buttonObject;
|
||||
|
||||
for (int i = 0; i < characterCustomizationTypeButtonInfoList.Count; i++) {
|
||||
for (int j = 0; j < characterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList.Count; j++) {
|
||||
int currentCharacterCustomizationTypeButtonInfoListCount = currentCharacterCustomizationTypeButtonInfoList.Count;
|
||||
|
||||
characterCustomizationButtonInfo currentInfo = characterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList [j];
|
||||
for (int i = 0; i < currentCharacterCustomizationTypeButtonInfoListCount; i++) {
|
||||
for (int j = 0; j < currentCharacterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList.Count; j++) {
|
||||
|
||||
characterCustomizationButtonInfo currentInfo = currentCharacterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList [j];
|
||||
|
||||
if (currentInfo.buttonObject == buttonObject) {
|
||||
|
||||
@@ -394,9 +516,11 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < characterCustomizationTypeButtonInfoList.Count; i++) {
|
||||
for (int j = 0; j < characterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList.Count; j++) {
|
||||
characterCustomizationButtonInfo currentInfo = characterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList [j];
|
||||
int currentCharacterCustomizationTypeButtonInfoListCount = currentCharacterCustomizationTypeButtonInfoList.Count;
|
||||
|
||||
for (int i = 0; i < currentCharacterCustomizationTypeButtonInfoListCount; i++) {
|
||||
for (int j = 0; j < currentCharacterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList.Count; j++) {
|
||||
characterCustomizationButtonInfo currentInfo = currentCharacterCustomizationTypeButtonInfoList [i].characterCustomizationButtonInfoList [j];
|
||||
|
||||
if (currentInfo.isSlider && currentInfo.setInitialValueFromBlendshape) {
|
||||
Slider currenSlider = currentInfo.buttonObject.GetComponent<Slider> ();
|
||||
@@ -434,10 +558,64 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
characterCustomizationManagerAssigned = currentCharacterCustomizationManager != null;
|
||||
|
||||
checkCharacterComponents ();
|
||||
|
||||
checkSetFullCharacterAssigned ();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void setMainCharacterCustomizationManager (characterCustomizationManager newCharacterCustomizationManager)
|
||||
{
|
||||
currentCharacterCustomizationManager = newCharacterCustomizationManager;
|
||||
|
||||
characterCustomizationManagerAssigned = currentCharacterCustomizationManager != null;
|
||||
}
|
||||
|
||||
public void setMainCharacterAspectCustomizationTemplateData (characterAspectCustomizationTemplateData newCharacterAspectCustomizationTemplateData)
|
||||
{
|
||||
mainCharacterAspectCustomizationTemplateData = newCharacterAspectCustomizationTemplateData;
|
||||
}
|
||||
|
||||
public void setMainCharacterTransform (Transform newTransform)
|
||||
{
|
||||
mainCharacterTransform = newTransform;
|
||||
}
|
||||
|
||||
public void setMainPlayerControllerTransform (Transform newTransform)
|
||||
{
|
||||
mainPlayerControllerTransform = newTransform;
|
||||
}
|
||||
|
||||
public void setNewCharacterModel (GameObject newObject)
|
||||
{
|
||||
characterCustomizationManager currentCharacterCustomizationManager = newObject.GetComponent<characterCustomizationManager> ();
|
||||
|
||||
setMainCharacterCustomizationManager (currentCharacterCustomizationManager);
|
||||
|
||||
characterModelElementInfo currentCharacterModelElementInfo = newObject.GetComponent<characterModelElementInfo> ();
|
||||
|
||||
if (currentCharacterModelElementInfo != null) {
|
||||
setMainCharacterAspectCustomizationTemplateData (currentCharacterModelElementInfo.mainCharacterAspectCustomizationTemplateData);
|
||||
}
|
||||
|
||||
setMainCharacterTransform (newObject.transform);
|
||||
|
||||
setMainPlayerControllerTransform (newObject.transform);
|
||||
}
|
||||
|
||||
public void setNextOrPreviousCharacterModel (bool state)
|
||||
{
|
||||
if (state) {
|
||||
eventToSetNextCharacterModel.Invoke ();
|
||||
} else {
|
||||
eventToSetPreviousCharacterModel.Invoke ();
|
||||
}
|
||||
|
||||
if (mainInventoryCharacterCustomizationSystemAssigned) {
|
||||
mainInventoryCharacterCustomizationSystem.setNextOrPreviousCharacterModel (state);
|
||||
}
|
||||
}
|
||||
|
||||
void checkCharacterComponents ()
|
||||
{
|
||||
if (!componentsAssigned) {
|
||||
@@ -497,6 +675,8 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
|
||||
checkCharacterComponents ();
|
||||
|
||||
checkSetFullCharacterAssigned ();
|
||||
|
||||
stopMenuCoroutineUpdate ();
|
||||
|
||||
if (state) {
|
||||
@@ -733,6 +913,13 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
return "";
|
||||
}
|
||||
|
||||
public void setMainInventoryCharacterCustomizationSystem (inventoryCharacterCustomizationSystem newInventoryCharacterCustomizationSystem)
|
||||
{
|
||||
mainInventoryCharacterCustomizationSystem = newInventoryCharacterCustomizationSystem;
|
||||
|
||||
mainInventoryCharacterCustomizationSystemAssigned = mainInventoryCharacterCustomizationSystem != null;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class characterCustomizationButtonInfo
|
||||
{
|
||||
@@ -773,6 +960,48 @@ public class characterAspectCustomizationUISystem : ingameMenuPanel
|
||||
[Space]
|
||||
|
||||
public bool isFullSet;
|
||||
|
||||
public characterCustomizationButtonInfo (characterCustomizationButtonInfo newState)
|
||||
{
|
||||
Name = newState.Name;
|
||||
|
||||
buttonObject = newState.buttonObject;
|
||||
|
||||
canBePressedMultipleTimes = newState.canBePressedMultipleTimes;
|
||||
|
||||
setObjectActiveState = newState.setObjectActiveState;
|
||||
|
||||
setObjectActive = newState.setObjectActive;
|
||||
|
||||
isToggle = newState.isToggle;
|
||||
|
||||
toggleName = newState.toggleName;
|
||||
|
||||
disableOtherObjects = newState.disableOtherObjects;
|
||||
|
||||
categoryOfObjectsToDisable = newState.categoryOfObjectsToDisable;
|
||||
|
||||
isSlider = newState.isSlider;
|
||||
|
||||
sliderName = newState.sliderName;
|
||||
|
||||
useRandomFloatValue = newState.useRandomFloatValue;
|
||||
|
||||
setInitialValueFromBlendshape = newState.setInitialValueFromBlendshape;
|
||||
|
||||
isFullSet = newState.isFullSet;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[System.Serializable]
|
||||
public class multipleCharacterCustomizationTypeButtonInfo
|
||||
{
|
||||
public string Name;
|
||||
|
||||
[Space]
|
||||
|
||||
public List<characterCustomizationTypeButtonInfo> characterCustomizationTypeButtonInfoList = new List<characterCustomizationTypeButtonInfo> ();
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterAspectCustomizationUISystem.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -4,66 +4,100 @@ using UnityEngine;
|
||||
|
||||
public class characterCustomizationBlendshapesHelper : MonoBehaviour
|
||||
{
|
||||
[Header ("Main Settings")]
|
||||
[Space]
|
||||
[Header ("Main Settings")]
|
||||
[Space]
|
||||
|
||||
public GameObject playerGameObject;
|
||||
public GameObject playerGameObject;
|
||||
|
||||
public characterCustomizationManager mainCharacterCustomizationManager;
|
||||
public characterCustomizationManager mainCharacterCustomizationManager;
|
||||
|
||||
[Space]
|
||||
[Header ("Debug Temporal BlendShapes")]
|
||||
[Space]
|
||||
public characterModelListManager mainCharacterModelListManager;
|
||||
|
||||
public List<characterCustomizationManager.temporalBlendshapeInfo> temporalBlendshapeInfoList = new List<characterCustomizationManager.temporalBlendshapeInfo> ();
|
||||
[Space]
|
||||
[Header ("Debug Temporal BlendShapes")]
|
||||
[Space]
|
||||
|
||||
[Space]
|
||||
[Header ("Debug Temporal Accessories")]
|
||||
[Space]
|
||||
public List<characterCustomizationManager.temporalBlendshapeInfo> temporalBlendshapeInfoList = new List<characterCustomizationManager.temporalBlendshapeInfo> ();
|
||||
|
||||
public List<string> temporalCurrentAccessoriesList = new List<string> ();
|
||||
[Space]
|
||||
[Header ("Debug Temporal Accessories")]
|
||||
[Space]
|
||||
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Space]
|
||||
public List<string> temporalCurrentAccessoriesList = new List<string> ();
|
||||
|
||||
public bool componentLocated;
|
||||
[Space]
|
||||
[Header ("Debug")]
|
||||
[Space]
|
||||
|
||||
public bool componentLocated;
|
||||
|
||||
|
||||
public void storeBlendshapesCustomization ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
checkMainCHaracterCustomizatationManager ();
|
||||
}
|
||||
public void storeBlendshapesCustomization ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
checkMainCHaracterCustomizatationManager ();
|
||||
}
|
||||
|
||||
if (componentLocated) {
|
||||
temporalBlendshapeInfoList = mainCharacterCustomizationManager.getTemporalBlendshapeInfoList ();
|
||||
if (componentLocated) {
|
||||
temporalBlendshapeInfoList = mainCharacterCustomizationManager.getTemporalBlendshapeInfoList ();
|
||||
|
||||
temporalCurrentAccessoriesList = mainCharacterCustomizationManager.getCurrentAccessoriesList ();
|
||||
}
|
||||
}
|
||||
temporalCurrentAccessoriesList = mainCharacterCustomizationManager.getCurrentAccessoriesList ();
|
||||
}
|
||||
}
|
||||
|
||||
public void setBlendshapeList ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
checkMainCHaracterCustomizatationManager ();
|
||||
}
|
||||
|
||||
if (componentLocated) {
|
||||
mainCharacterCustomizationManager.setBlendshapeList (temporalBlendshapeInfoList);
|
||||
public void setBlendshapeList ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
checkMainCHaracterCustomizatationManager ();
|
||||
}
|
||||
|
||||
mainCharacterCustomizationManager.setCurrentAccessoriesList (temporalCurrentAccessoriesList);
|
||||
}
|
||||
}
|
||||
if (componentLocated) {
|
||||
mainCharacterCustomizationManager.setBlendshapeList (temporalBlendshapeInfoList);
|
||||
|
||||
public void checkMainCHaracterCustomizatationManager ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
if (mainCharacterCustomizationManager == null && playerGameObject != null) {
|
||||
mainCharacterCustomizationManager = playerGameObject.GetComponentInChildren<characterCustomizationManager> ();
|
||||
}
|
||||
mainCharacterCustomizationManager.setCurrentAccessoriesList (temporalCurrentAccessoriesList);
|
||||
}
|
||||
}
|
||||
|
||||
componentLocated = mainCharacterCustomizationManager != null;
|
||||
}
|
||||
}
|
||||
public void checkMainCHaracterCustomizatationManager ()
|
||||
{
|
||||
if (!componentLocated) {
|
||||
if (mainCharacterCustomizationManager == null && playerGameObject != null) {
|
||||
getMainCharacterCustomizationManager ();
|
||||
}
|
||||
|
||||
componentLocated = mainCharacterCustomizationManager != null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setPlayerGameObject (GameObject newObject)
|
||||
{
|
||||
if (playerGameObject != newObject) {
|
||||
playerGameObject = newObject;
|
||||
|
||||
getMainCharacterCustomizationManager ();
|
||||
}
|
||||
}
|
||||
|
||||
void getMainCharacterCustomizationManager ()
|
||||
{
|
||||
mainCharacterCustomizationManager = playerGameObject.GetComponentInChildren<characterCustomizationManager> ();
|
||||
|
||||
componentLocated = mainCharacterCustomizationManager != null;
|
||||
}
|
||||
|
||||
public int getCurrentCharacterModelID ()
|
||||
{
|
||||
if (mainCharacterModelListManager != null) {
|
||||
return mainCharacterModelListManager.getCurrentCharacterModelID ();
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
public void setCurrentCharacterModelID (int newID)
|
||||
{
|
||||
if (mainCharacterModelListManager != null) {
|
||||
mainCharacterModelListManager.replaceCharacterModelByID (newID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterCustomizationBlendshapesHelper.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterCustomizationInfo.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -115,6 +115,29 @@ public class characterCustomizationInventoryHelper : inventoryManagerInfo
|
||||
}
|
||||
}
|
||||
|
||||
public void setMainCharacterCustomizationManager (characterCustomizationManager newCharacterCustomizationManager)
|
||||
{
|
||||
mainCharacterCustomizationManager = newCharacterCustomizationManager;
|
||||
}
|
||||
|
||||
public void setMainFullArmorClothTemplateData (fullArmorClothTemplateData newFullArmorClothTemplateData)
|
||||
{
|
||||
mainFullArmorClothTemplateData = newFullArmorClothTemplateData;
|
||||
}
|
||||
|
||||
public void setNewCharacterModel (GameObject newObject)
|
||||
{
|
||||
characterCustomizationManager currentCharacterCustomizationManager = newObject.GetComponent<characterCustomizationManager> ();
|
||||
|
||||
setMainCharacterCustomizationManager (currentCharacterCustomizationManager);
|
||||
|
||||
characterModelElementInfo currentCharacterModelElementInfo = newObject.GetComponent<characterModelElementInfo> ();
|
||||
|
||||
if (currentCharacterModelElementInfo != null) {
|
||||
setMainFullArmorClothTemplateData (currentCharacterModelElementInfo.mainFullArmorClothTemplateData);
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class extraInventoryInfo
|
||||
{
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterCustomizationInventoryHelper.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/characterCustomizationManager.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/fullArmorClothTemplate.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
@@ -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/Character Aspect Customization System/fullArmorClothTemplateData.cs
|
||||
uploadId: 814740
|
||||
uploadId: 889948
|
||||
|
||||
Reference in New Issue
Block a user