浏览代码

Fixed issue with rogue head being wrong reference

/main
CGerrits SF 4 年前
当前提交
10a4d2c8
共有 4 个文件被更改,包括 311 次插入512 次删除
  1. 713
      Assets/BossRoom/Prefabs/Character/CharacterSet.prefab
  2. 4
      Assets/BossRoom/Prefabs/Player.prefab
  3. 64
      Assets/BossRoom/Scenes/DungeonTest.unity
  4. 42
      Assets/BossRoom/Scripts/Development/dgtest/CharacterSwap.cs

713
Assets/BossRoom/Prefabs/Character/CharacterSet.prefab
文件差异内容过多而无法显示
查看文件

4
Assets/BossRoom/Prefabs/Player.prefab


propertyPath: m_ModelIndex
value: 7
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7943089997373843793, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Enabled
value: 1

64
Assets/BossRoom/Scenes/DungeonTest.unity


propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 7
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
--- !u!1001 &863168463

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 3
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: aec61333b49ad744bbf3aa0ea94672a1, type: 2}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: hotswapKey
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4654558647929214568, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: modelIndex
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4659130856917116551, guid: d396ab139e993ee43b2eb29978bba8ff, type: 3}
propertyPath: m_Mesh
value:

42
Assets/BossRoom/Scripts/Development/dgtest/CharacterSwap.cs


public void setFullActive(bool isActive)
{
ears?.SetActive(isActive);
head?.SetActive(isActive);
mouth?.SetActive(isActive);
hair?.SetActive(isActive);
eyes?.SetActive(isActive);
torso?.SetActive(isActive);
gear_left_hand?.SetActive(isActive);
hand_right?.SetActive(isActive);
hand_left?.SetActive(isActive);
shoulder_right?.SetActive(isActive);
shoulder_left?.SetActive(isActive);
gear_left_hand?.SetActive(isActive);
gear_right_hand?.SetActive(isActive);
ears.SetActive(isActive);
head.SetActive(isActive);
mouth.SetActive(isActive);
hair.SetActive(isActive);
eyes.SetActive(isActive);
torso.SetActive(isActive);
gear_left_hand.SetActive(isActive);
hand_right.SetActive(isActive);
hand_left.SetActive(isActive);
shoulder_right.SetActive(isActive);
shoulder_left.SetActive(isActive);
gear_left_hand.SetActive(isActive);
gear_right_hand.SetActive(isActive);
}
}
[SerializeField]

public int modelIndex = 0;
public int modelIndex;
void Awake()
{
if (modelIndex >= characterModels.Length)
{
modelIndex = 0;
}
swapToModel(modelIndex);
}
public void cycleModel()
void cycleModel()
if (modelIndex == characterModels.Length)
if (modelIndex == characterModels.Length - 1)
{
modelIndex = 0;
}

}
this.swapToModel(modelIndex);
swapToModel(modelIndex);
}

正在加载...
取消
保存