Skip to content

Commit

Permalink
Finished automating the character creation process
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Couture committed Oct 21, 2021
1 parent 0d4f0af commit 4ce9699
Show file tree
Hide file tree
Showing 37 changed files with 1,921 additions and 666 deletions.
114 changes: 60 additions & 54 deletions Assets/0_Scenes/SampleScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
m_IndirectSpecularColor: {r: 0.44748783, g: 0.49744153, b: 0.5753023, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
Expand Down Expand Up @@ -150,19 +150,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ef9cc52e7e67f984f880a0afc3071385, type: 3}
m_Name:
m_EditorClassIdentifier:
StoreItems:
- Id: 0
Name: Guy
Price: 100
Icon: {fileID: 21300000, guid: afb1eb6db263c73429abcadedd4607a4, type: 3}
Prefab: {fileID: 7363997819604639264, guid: 63f56fca1e9c3cc48ba57e14a6774a4b,
type: 3}
- Id: 1
Name: Zombie
Price: 200
Icon: {fileID: 21300000, guid: 8c950c7829811dc48a532caad8f4fbe1, type: 3}
Prefab: {fileID: 5187417456626266655, guid: abf17b2357e9a2f46be8ee90facfb964,
type: 3}
StoreItems: []
characterList: {fileID: 11400000, guid: 1ac8f72d5ee3c69448022f810a35ec71, type: 2}
--- !u!4 &40247147
Transform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -229,6 +218,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -306,6 +296,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -439,6 +430,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -582,6 +574,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -729,6 +722,11 @@ PrefabInstance:
propertyPath: m_Name
value: EnviromentPrefab
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 7
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -744,6 +742,11 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 774
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.x
Expand All @@ -759,16 +762,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 7
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -853,6 +846,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -986,6 +980,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -1230,6 +1225,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -1267,6 +1263,11 @@ PrefabInstance:
propertyPath: m_Name
value: EnviromentPrefab
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -1282,6 +1283,11 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 511
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.x
Expand All @@ -1297,16 +1303,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -1527,6 +1523,11 @@ PrefabInstance:
propertyPath: m_Name
value: EnviromentPrefab
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -1542,6 +1543,11 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 248
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.x
Expand All @@ -1557,16 +1563,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -1713,6 +1709,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -1889,6 +1886,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -1945,6 +1943,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -2191,6 +2190,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -2338,6 +2338,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -2531,6 +2532,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -2664,6 +2666,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -2969,6 +2972,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -3117,6 +3121,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -3541,6 +3546,7 @@ MonoBehaviour:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
Expand Down Expand Up @@ -3580,6 +3586,11 @@ PrefabInstance:
propertyPath: m_Name
value: EnviromentPrefab
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalPosition.x
Expand All @@ -3595,6 +3606,11 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: -15
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.x
Expand All @@ -3610,16 +3626,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4913665152517020828, guid: c3a693492e7d2454fa875282f1e91dc9,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
4 changes: 2 additions & 2 deletions Assets/2_Prefabs/Char01.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ GameObject:
- component: {fileID: 7363997819378707834}
- component: {fileID: 7363997819378707835}
m_Layer: 0
m_Name: free_male_1
m_Name: Char01
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand Down Expand Up @@ -671,7 +671,7 @@ SkinnedMeshRenderer:
- {fileID: 7363997819604992586}
- {fileID: 7363997819604992594}
m_BlendShapeWeights: []
m_RootBone: {fileID: 7363997819604992592}
m_RootBone: {fileID: 0}
m_AABB:
m_Center: {x: -0.026544098, y: -0.000065948814, z: 0.000000010244548}
m_Extent: {x: 0.055122387, y: 0.019937018, z: 0.029521387}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 8244124671374508983}
- component: {fileID: 5447749944364158844}
- component: {fileID: 4085908619852332775}
m_Layer: 0
m_Name: CharBase
m_Name: CharacterLogic
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand All @@ -32,25 +31,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!95 &5447749944364158844
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7450849567795141773}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 8b9a677f24793ba45bdc27a1dab7745e, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!136 &4085908619852332775
CapsuleCollider:
m_ObjectHideFlags: 0
Expand Down
File renamed without changes.
Loading

0 comments on commit 4ce9699

Please sign in to comment.