Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,388 changes: 5,388 additions & 0 deletions RPG Project/Assets/Asset Packs/DrSugiyama-Regular SDF.asset

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
21 changes: 21 additions & 0 deletions RPG Project/Assets/Asset Packs/DrSugiyama-Regular.ttf.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using UnityEngine;

namespace GameDevTV.UI
{
public class UISwitcher : MonoBehaviour {
[SerializeField] GameObject entryPoint;

private void Start() {
Display(entryPoint);
}

public void Display(GameObject childToDisplay)
{
if (childToDisplay.transform.parent != transform) return;

foreach (Transform child in transform)
{
child.gameObject.SetActive(child.gameObject == childToDisplay);
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

74 changes: 66 additions & 8 deletions RPG Project/Assets/Game/Characters/Character.controller
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,56 @@ AnimatorStateTransition:
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &-7351488941438072133
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 2
m_ConditionEvent: isDead
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 1102436967258186328}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0
m_TransitionOffset: 0
m_ExitTime: 0.765625
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &-6646800604302825319
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: instantDeath
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 1102490535940115724}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0
m_TransitionOffset: 0.96
m_ExitTime: 0.75
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 0
--- !u!1101 &-4989360497750059691
AnimatorStateTransition:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -68,19 +118,25 @@ AnimatorController:
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: die
- m_Name: stopAttack
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: stopAttack
- m_Name: ability1
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: ability1
- m_Name: isDead
m_Type: 4
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
- m_Name: instantDeath
m_Type: 9
m_DefaultFloat: 0
m_DefaultInt: 0
Expand Down Expand Up @@ -147,7 +203,7 @@ AnimatorStateTransition:
m_Name:
m_Conditions:
- m_ConditionMode: 1
m_ConditionEvent: die
m_ConditionEvent: isDead
m_EventTreshold: 0
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 1102490535940115724}
Expand All @@ -162,7 +218,7 @@ AnimatorStateTransition:
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
m_CanTransitionToSelf: 0
--- !u!1101 &1101868460228597950
AnimatorStateTransition:
m_ObjectHideFlags: 1
Expand Down Expand Up @@ -272,7 +328,8 @@ AnimatorState:
m_Name: Death
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_Transitions:
- {fileID: -7351488941438072133}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
Expand Down Expand Up @@ -333,12 +390,13 @@ AnimatorStateMachine:
m_Position: {x: 444, y: -12, z: 0}
- serializedVersion: 1
m_State: {fileID: 1102490535940115724}
m_Position: {x: 390, y: 390, z: 0}
m_Position: {x: 300, y: 390, z: 0}
- serializedVersion: 1
m_State: {fileID: 8095391520925917669}
m_Position: {x: 410, y: 240, z: 0}
m_Position: {x: 550, y: 240, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions:
- {fileID: -6646800604302825319}
- {fileID: 1101840242388457422}
- {fileID: -4989360497750059691}
m_EntryTransitions: []
Expand Down
42 changes: 25 additions & 17 deletions RPG Project/Assets/Game/Characters/Character.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ MeshRenderer:
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
Expand All @@ -321,6 +323,7 @@ MeshRenderer:
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
Expand All @@ -333,6 +336,7 @@ MeshRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &1172905976
MonoBehaviour:
m_ObjectHideFlags: 0
Expand All @@ -347,6 +351,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
target: {fileID: 0}
maxSpeed: 6
maxNavPathLength: 40
--- !u!195 &1172905977
NavMeshAgent:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -433,6 +438,7 @@ MonoBehaviour:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1501492681116784289}
m_TargetAssemblyTypeName:
m_MethodName: Spawn
m_Mode: 0
m_Arguments:
Expand All @@ -444,6 +450,7 @@ MonoBehaviour:
m_BoolArgument: 0
m_CallState: 2
- m_Target: {fileID: 4391565082401990962}
m_TargetAssemblyTypeName:
m_MethodName: Play
m_Mode: 1
m_Arguments:
Expand All @@ -454,12 +461,11 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_TypeName: RPG.Attributes.Health+TakeDamageEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
onDie:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2080957664971146676}
m_TargetAssemblyTypeName:
m_MethodName: Play
m_Mode: 1
m_Arguments:
Expand All @@ -470,8 +476,10 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine.CoreModule, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
disableIfDead:
- {fileID: 1172905976}
- {fileID: 3125957438692005694}
- {fileID: 1172905977}
--- !u!114 &488557239800501724
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -557,10 +565,10 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 8196697675836667564}
m_Modifications:
- target: {fileID: 9030812713818455770, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_Name
value: Damage Text Spawner
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
Expand All @@ -579,27 +587,22 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_LocalRotation.y
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_LocalRotation.z
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_RootOrder
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2049986578577140850, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
Expand All @@ -617,6 +620,11 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 9030812713818455770, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c,
type: 3}
propertyPath: m_Name
value: Damage Text Spawner
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1fa53c3ca92ac104fa6996fa9fc2b81c, type: 3}
--- !u!4 &4375870170505401555 stripped
Expand Down
Loading