Skip to content

Commit

Permalink
Create UI text for level end (#18)
Browse files Browse the repository at this point in the history
* Add TextMeshPro plugin to gitignore

* Add Caesar Dressing font

* Create victory text prefab

* Create defeat text prefab

* Create victory text factory and pool configuration

* Create defeat text factory and pool configuration

* Show defeat text on entering to defeat gameplay state

* Show victory text on entering to victory gameplay state

* Create defeat text appearing animation

* Create victory text appearing animation

* Disable canvas
  • Loading branch information
danliukuri authored Sep 5, 2023
1 parent 3f41af4 commit 1174f6b
Show file tree
Hide file tree
Showing 49 changed files with 3,464 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ sysinfo.txt
# Crashlytics generated file
crashlytics-build.properties

# TextMeshPro plugin
/[Aa]ssets/[Tt]ext*[Mm]esh*[Pp]ro
/[Aa]ssets/[Tt]ext*[Mm]esh*[Pp]ro.meta
/[Aa]ssets/[Pp]lugins/[Tt]ext*[Mm]esh*[Pp]ro
/[Aa]ssets/[Pp]lugins/[Tt]ext*[Mm]esh*[Pp]ro.meta

# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*

Expand Down
2 changes: 1 addition & 1 deletion Assets/Animations/Doors/DoorsAnimatorController.controller
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ AnimatorController:
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_Controller: {fileID: 9100000}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
Expand Down
8 changes: 8 additions & 0 deletions Assets/Animations/UI.meta

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

8 changes: 8 additions & 0 deletions Assets/Animations/UI/DefeatText.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,72 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1107 &-3204861088735758602
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -1578668138977630817}
m_Position: {x: 100, y: 200, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 100, y: 0, z: 0}
m_EntryPosition: {x: 100, y: 100, z: 0}
m_ExitPosition: {x: 100, y: -100, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -1578668138977630817}
--- !u!1102 &-1578668138977630817
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DefeatTextAppearing
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 6531a4a4e5af74e45a45e1e603d9a736, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DefeatTextAnimatorController
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: -3204861088735758602}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}

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

Loading

0 comments on commit 1174f6b

Please sign in to comment.