From 70cefd633634f067efc9a03655618a197fc26ffa Mon Sep 17 00:00:00 2001 From: Ian Hill Date: Sun, 24 Jul 2022 13:01:29 -0500 Subject: [PATCH] Translated most elements on CaveEntrance map --- Assembly-CSharp.csproj | 3 + Assets/Scenes/CaveEntrance.unity | 687 +++++++++++++++++++- Assets/Scenes/Main Menu.unity | 16 + Assets/Scripts/NPCs' Scripts/NPCDialogue.cs | 114 +++- Assets/TranslateText.cs | 57 ++ Assets/TranslateText.cs.meta | 11 + UserSettings/EditorUserSettings.asset | 10 +- 7 files changed, 867 insertions(+), 31 deletions(-) create mode 100644 Assets/TranslateText.cs create mode 100644 Assets/TranslateText.cs.meta diff --git a/Assembly-CSharp.csproj b/Assembly-CSharp.csproj index 7864ac47..9eebf977 100644 --- a/Assembly-CSharp.csproj +++ b/Assembly-CSharp.csproj @@ -48,6 +48,7 @@ + @@ -56,6 +57,7 @@ + @@ -73,6 +75,7 @@ + diff --git a/Assets/Scenes/CaveEntrance.unity b/Assets/Scenes/CaveEntrance.unity index 830b61ed..402e8704 100644 --- a/Assets/Scenes/CaveEntrance.unity +++ b/Assets/Scenes/CaveEntrance.unity @@ -1040,6 +1040,37 @@ Transform: m_Father: {fileID: 1193056562} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &91853657 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 2338815116873632733, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} +--- !u!114 &91853659 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2338815116873632731, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 91853657} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &91853661 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 91853657} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << no, I haven't seen it... >> + textPolish: << nie, nie widzialem jej... >> + displayText: {fileID: 91853659} --- !u!1 &96776835 GameObject: m_ObjectHideFlags: 0 @@ -23275,6 +23306,7 @@ GameObject: - component: {fileID: 105457319} - component: {fileID: 105457318} - component: {fileID: 105457317} + - component: {fileID: 105457322} m_Layer: 5 m_Name: yes m_TagString: Untagged @@ -23498,7 +23530,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: yes + m_Text: --- !u!222 &105457321 CanvasRenderer: m_ObjectHideFlags: 0 @@ -23507,6 +23539,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 105457315} m_CullTransparentMesh: 1 +--- !u!114 &105457322 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 105457315} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: yes + textPolish: tak + displayText: {fileID: 105457320} --- !u!1 &107310818 GameObject: m_ObjectHideFlags: 0 @@ -51216,6 +51263,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 292791103} m_CullTransparentMesh: 1 +--- !u!1 &296357725 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1885730413234353652, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + m_PrefabInstance: {fileID: 1885730412853398267} + m_PrefabAsset: {fileID: 0} +--- !u!114 &296357727 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 296357725} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: continue >> + textPolish: kontynuuj >> + displayText: {fileID: 296357728} +--- !u!114 &296357728 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 1885730413234353642, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + m_PrefabInstance: {fileID: 1885730412853398267} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 296357725} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &297422993 stripped GameObject: m_CorrespondingSourceObject: {fileID: 2338815118077181735, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} @@ -54329,6 +54407,7 @@ GameObject: - component: {fileID: 374378055} - component: {fileID: 374378054} - component: {fileID: 374378053} + - component: {fileID: 374378057} m_Layer: 5 m_Name: Controls m_TagString: Untagged @@ -54457,7 +54536,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: controls + m_Text: --- !u!222 &374378056 CanvasRenderer: m_ObjectHideFlags: 0 @@ -54466,6 +54545,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 374378051} m_CullTransparentMesh: 1 +--- !u!114 &374378057 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 374378051} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: controls + textPolish: sterowanie + displayText: {fileID: 374378055} --- !u!1 &396257398 GameObject: m_ObjectHideFlags: 0 @@ -54526,6 +54620,7 @@ GameObject: - component: {fileID: 423598230} - component: {fileID: 423598229} - component: {fileID: 423598228} + - component: {fileID: 423598232} m_Layer: 5 m_Name: Back m_TagString: Untagged @@ -54654,7 +54749,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: I don't want to quit + m_Text: --- !u!222 &423598231 CanvasRenderer: m_ObjectHideFlags: 0 @@ -54663,6 +54758,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 423598226} m_CullTransparentMesh: 1 +--- !u!114 &423598232 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 423598226} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: I don't want to quit + textPolish: Nie chce wyjsc z gry + displayText: {fileID: 423598230} --- !u!1 &424496145 GameObject: m_ObjectHideFlags: 0 @@ -55343,6 +55453,7 @@ GameObject: - component: {fileID: 486623991} - component: {fileID: 486623994} - component: {fileID: 486623993} + - component: {fileID: 486623995} m_Layer: 5 m_Name: Language2 m_TagString: Untagged @@ -55402,7 +55513,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Polsih + m_Text: --- !u!222 &486623992 CanvasRenderer: m_ObjectHideFlags: 0 @@ -55479,6 +55590,21 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 +--- !u!114 &486623995 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 486623989} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: Polish + textPolish: Polski + displayText: {fileID: 486623991} --- !u!1 &506182053 GameObject: m_ObjectHideFlags: 0 @@ -55956,6 +56082,20 @@ MonoBehaviour: name: Lumberjack sentences: - Have a great day! + dialoguePolish: + name: Drwal + sentences: + - Witaj, moglbys mi pomoc? + - Zostawilem swoja siekiere gdzies w lesie. Jezeli ja znajdziesz, prosze przynies + mi ja. + dialogueWQuestPolish: + name: Drwal + sentences: + - Nadal nie znalazlem swojej siekiery... + dialogueAQuestPolish: + name: Drwal + sentences: + - Milego dnia! Panel: {fileID: 1099828704} requiredItem: QuestPanel: {fileID: 923578753} @@ -72384,6 +72524,7 @@ GameObject: - component: {fileID: 683740647} - component: {fileID: 683740646} - component: {fileID: 683740645} + - component: {fileID: 683740648} m_Layer: 5 m_Name: Sounds m_TagString: Untagged @@ -72456,7 +72597,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: sound volume + m_Text: --- !u!222 &683740647 CanvasRenderer: m_ObjectHideFlags: 0 @@ -72465,6 +72606,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 683740643} m_CullTransparentMesh: 1 +--- !u!114 &683740648 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 683740643} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: sound volume + textPolish: dzwieki + displayText: {fileID: 683740646} --- !u!1 &698155433 GameObject: m_ObjectHideFlags: 0 @@ -77832,6 +77988,7 @@ GameObject: - component: {fileID: 743480052} - component: {fileID: 743480051} - component: {fileID: 743480050} + - component: {fileID: 743480054} m_Layer: 5 m_Name: continue m_TagString: Untagged @@ -77960,7 +78117,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: continue + m_Text: --- !u!222 &743480053 CanvasRenderer: m_ObjectHideFlags: 0 @@ -77969,6 +78126,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 743480048} m_CullTransparentMesh: 1 +--- !u!114 &743480054 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 743480048} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: continue + textPolish: kontynuuj + displayText: {fileID: 743480052} --- !u!1 &749129728 GameObject: m_ObjectHideFlags: 0 @@ -78061,6 +78233,7 @@ GameObject: - component: {fileID: 749890579} - component: {fileID: 749890578} - component: {fileID: 749890577} + - component: {fileID: 749890581} m_Layer: 5 m_Name: Back m_TagString: Untagged @@ -78189,7 +78362,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: << back >> + m_Text: --- !u!222 &749890580 CanvasRenderer: m_ObjectHideFlags: 0 @@ -78198,6 +78371,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 749890575} m_CullTransparentMesh: 1 +--- !u!114 &749890581 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 749890575} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << back >> + textPolish: << powrot >> + displayText: {fileID: 749890579} --- !u!1 &786466314 GameObject: m_ObjectHideFlags: 0 @@ -113754,6 +113942,37 @@ ParticleSystem: m_PostInfinity: 2 m_RotationOrder: 4 vectorLabel1_3: W +--- !u!1 &883991298 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5245844912540369921, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} +--- !u!114 &883991300 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5245844912540369923, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 883991298} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &883991302 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 883991298} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: Will you help me + textPolish: Pomozesz mi? + displayText: {fileID: 883991300} --- !u!1 &899694184 GameObject: m_ObjectHideFlags: 0 @@ -114093,6 +114312,37 @@ MonoBehaviour: m_OnValueChanged: m_PersistentCalls: m_Calls: [] +--- !u!1 &914858391 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5245844911406616996, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} +--- !u!114 &914858393 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5245844911406616998, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 914858391} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &914858395 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 914858391} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << yes >> + textPolish: << tak >> + displayText: {fileID: 914858393} --- !u!1 &916349077 GameObject: m_ObjectHideFlags: 0 @@ -114410,6 +114660,7 @@ GameObject: - component: {fileID: 933251620} - component: {fileID: 933251619} - component: {fileID: 933251618} + - component: {fileID: 933251622} m_Layer: 5 m_Name: save m_TagString: Untagged @@ -114618,6 +114869,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 933251616} m_CullTransparentMesh: 1 +--- !u!114 &933251622 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 933251616} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: save + textPolish: zapisz + displayText: {fileID: 933251620} --- !u!1 &940670621 GameObject: m_ObjectHideFlags: 0 @@ -115127,8 +115393,9 @@ GameObject: - component: {fileID: 991059755} - component: {fileID: 991059757} - component: {fileID: 991059756} + - component: {fileID: 991059758} m_Layer: 5 - m_Name: Language + m_Name: music m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -115186,7 +115453,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: music volume + m_Text: --- !u!222 &991059757 CanvasRenderer: m_ObjectHideFlags: 0 @@ -115195,6 +115462,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 991059754} m_CullTransparentMesh: 1 +--- !u!114 &991059758 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 991059754} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: music volume + textPolish: muzyka + displayText: {fileID: 991059756} --- !u!1 &996161345 GameObject: m_ObjectHideFlags: 0 @@ -115456,6 +115738,37 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Panel: {fileID: 845223940} +--- !u!1 &1027444669 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 2338815118713828405, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1027444671 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2338815118713828403, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1027444669} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1027444673 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1027444669} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: Have you found it? + textPolish: Znalazles ja? + displayText: {fileID: 1027444671} --- !u!1 &1038010608 GameObject: m_ObjectHideFlags: 0 @@ -115624,6 +115937,7 @@ GameObject: - component: {fileID: 1046613185} - component: {fileID: 1046613184} - component: {fileID: 1046613183} + - component: {fileID: 1046613187} m_Layer: 5 m_Name: Back m_TagString: Untagged @@ -115752,7 +116066,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: << back >> + m_Text: --- !u!222 &1046613186 CanvasRenderer: m_ObjectHideFlags: 0 @@ -115761,6 +116075,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1046613181} m_CullTransparentMesh: 1 +--- !u!114 &1046613187 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1046613181} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << back >> + textPolish: << powrot >> + displayText: {fileID: 1046613185} --- !u!1 &1047883202 GameObject: m_ObjectHideFlags: 0 @@ -125902,6 +126231,7 @@ GameObject: - component: {fileID: 1133104833} - component: {fileID: 1133104832} - component: {fileID: 1133104831} + - component: {fileID: 1133104835} m_Layer: 5 m_Name: Language m_TagString: Untagged @@ -126030,7 +126360,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: language + m_Text: --- !u!222 &1133104834 CanvasRenderer: m_ObjectHideFlags: 0 @@ -126039,6 +126369,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1133104829} m_CullTransparentMesh: 1 +--- !u!114 &1133104835 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1133104829} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: language + textPolish: jezyk + displayText: {fileID: 1133104833} --- !u!1 &1140585616 GameObject: m_ObjectHideFlags: 0 @@ -126052,6 +126397,7 @@ GameObject: - component: {fileID: 1140585620} - component: {fileID: 1140585619} - component: {fileID: 1140585618} + - component: {fileID: 1140585622} m_Layer: 5 m_Name: Back m_TagString: Untagged @@ -126180,7 +126526,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: << back >> + m_Text: --- !u!222 &1140585621 CanvasRenderer: m_ObjectHideFlags: 0 @@ -126189,6 +126535,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1140585616} m_CullTransparentMesh: 1 +--- !u!114 &1140585622 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1140585616} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << back >> + textPolish: << powrot >> + displayText: {fileID: 1140585620} --- !u!1 &1174630500 GameObject: m_ObjectHideFlags: 0 @@ -127468,6 +127829,7 @@ GameObject: - component: {fileID: 1245845883} - component: {fileID: 1245845882} - component: {fileID: 1245845881} + - component: {fileID: 1245845885} m_Layer: 5 m_Name: Sounds m_TagString: Untagged @@ -127596,7 +127958,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: sounds + m_Text: --- !u!222 &1245845884 CanvasRenderer: m_ObjectHideFlags: 0 @@ -127605,6 +127967,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1245845879} m_CullTransparentMesh: 1 +--- !u!114 &1245845885 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1245845879} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: sounds + textPolish: dzwieki + displayText: {fileID: 1245845883} --- !u!1 &1251808200 GameObject: m_ObjectHideFlags: 0 @@ -127617,6 +127994,7 @@ GameObject: - component: {fileID: 1251808204} - component: {fileID: 1251808203} - component: {fileID: 1251808202} + - component: {fileID: 1251808205} m_Layer: 5 m_Name: Question m_TagString: Untagged @@ -127689,7 +128067,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Do you want to save your game before quitting? + m_Text: --- !u!222 &1251808204 CanvasRenderer: m_ObjectHideFlags: 0 @@ -127698,6 +128076,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1251808200} m_CullTransparentMesh: 1 +--- !u!114 &1251808205 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1251808200} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: Do you want to save your game before quitting? + textPolish: Czy chcesz zapisac gre przed jej zamknieciem? + displayText: {fileID: 1251808203} --- !u!1 &1261810047 GameObject: m_ObjectHideFlags: 0 @@ -127777,6 +128170,37 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1261810047} m_CullTransparentMesh: 1 +--- !u!1 &1267427583 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 5245844912008955764, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1267427585 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5245844912008955766, guid: bb5308fba8936aa479d242e38a056110, type: 3} + m_PrefabInstance: {fileID: 5245844912020208448} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1267427583} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1267427587 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1267427583} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << not now >> + textPolish: << nie teraz >> + displayText: {fileID: 1267427585} --- !u!1 &1280430025 GameObject: m_ObjectHideFlags: 0 @@ -191867,6 +192291,7 @@ GameObject: - component: {fileID: 1301601626} - component: {fileID: 1301601629} - component: {fileID: 1301601628} + - component: {fileID: 1301601630} m_Layer: 5 m_Name: Language1 m_TagString: Untagged @@ -191926,7 +192351,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: English + m_Text: --- !u!222 &1301601627 CanvasRenderer: m_ObjectHideFlags: 0 @@ -192003,6 +192428,21 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 +--- !u!114 &1301601630 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1301601624} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: English + textPolish: Angielski + displayText: {fileID: 1301601626} --- !u!1 &1304852185 GameObject: m_ObjectHideFlags: 0 @@ -224327,6 +224767,7 @@ GameObject: - component: {fileID: 1513956213} - component: {fileID: 1513956212} - component: {fileID: 1513956211} + - component: {fileID: 1513956215} m_Layer: 5 m_Name: no m_TagString: Untagged @@ -224454,7 +224895,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: no + m_Text: --- !u!222 &1513956214 CanvasRenderer: m_ObjectHideFlags: 0 @@ -224463,6 +224904,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1513956209} m_CullTransparentMesh: 1 +--- !u!114 &1513956215 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1513956209} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: no + textPolish: nie + displayText: {fileID: 1513956213} --- !u!1 &1546100803 GameObject: m_ObjectHideFlags: 0 @@ -224474,6 +224930,7 @@ GameObject: - component: {fileID: 1546100804} - component: {fileID: 1546100806} - component: {fileID: 1546100805} + - component: {fileID: 1546100807} m_Layer: 5 m_Name: Text m_TagString: Untagged @@ -224497,7 +224954,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchoredPosition: {x: -24.2, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1546100805 @@ -224533,7 +224990,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: << CLOSE >> + m_Text: --- !u!222 &1546100806 CanvasRenderer: m_ObjectHideFlags: 0 @@ -224542,6 +224999,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1546100803} m_CullTransparentMesh: 1 +--- !u!114 &1546100807 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1546100803} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << CLOSE >> + textPolish: << ZAMKNIJ >> + displayText: {fileID: 1546100805} --- !u!1 &1549432368 GameObject: m_ObjectHideFlags: 0 @@ -225198,6 +225670,37 @@ CircleCollider2D: m_Offset: {x: 0.62295127, y: 0.40740752} serializedVersion: 2 m_Radius: 2.0834243 +--- !u!1 &1640121656 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 2338815118430342123, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} +--- !u!114 &1640121658 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2338815118430342121, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + m_PrefabInstance: {fileID: 2338815117836677046} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1640121656} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1640121660 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1640121656} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << yes, here you go! >> + textPolish: << tak, trzymaj! >> + displayText: {fileID: 1640121658} --- !u!1 &1650688809 GameObject: m_ObjectHideFlags: 0 @@ -235626,6 +236129,7 @@ GameObject: - component: {fileID: 1806804065} - component: {fileID: 1806804064} - component: {fileID: 1806804063} + - component: {fileID: 1806804067} m_Layer: 5 m_Name: quit game m_TagString: Untagged @@ -235763,6 +236267,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1806804061} m_CullTransparentMesh: 1 +--- !u!114 &1806804067 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1806804061} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: quit game + textPolish: wyjdz z gry + displayText: {fileID: 1806804065} --- !u!1 &1811764001 GameObject: m_ObjectHideFlags: 0 @@ -256686,6 +257205,7 @@ GameObject: - component: {fileID: 1996553856} - component: {fileID: 1996553858} - component: {fileID: 1996553857} + - component: {fileID: 1996553859} m_Layer: 5 m_Name: Text m_TagString: Untagged @@ -256745,7 +257265,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: continue >> + m_Text: --- !u!222 &1996553858 CanvasRenderer: m_ObjectHideFlags: 0 @@ -256754,6 +257274,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1996553855} m_CullTransparentMesh: 1 +--- !u!114 &1996553859 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1996553855} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: continue >> + textPolish: kontynuuj >> + displayText: {fileID: 0} --- !u!1 &2007160024 GameObject: m_ObjectHideFlags: 0 @@ -257477,6 +258012,7 @@ GameObject: - component: {fileID: 2079297240} - component: {fileID: 2079297239} - component: {fileID: 2079297238} + - component: {fileID: 2079297242} m_Layer: 5 m_Name: settings m_TagString: Untagged @@ -257614,6 +258150,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2079297236} m_CullTransparentMesh: 1 +--- !u!114 &2079297242 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2079297236} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: settings + textPolish: ustawienia + displayText: {fileID: 2079297240} --- !u!1 &2102486052 GameObject: m_ObjectHideFlags: 0 @@ -257627,6 +258178,7 @@ GameObject: - component: {fileID: 2102486056} - component: {fileID: 2102486055} - component: {fileID: 2102486054} + - component: {fileID: 2102486058} m_Layer: 5 m_Name: Back m_TagString: Untagged @@ -257755,7 +258307,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: << back >> + m_Text: --- !u!222 &2102486057 CanvasRenderer: m_ObjectHideFlags: 0 @@ -257764,6 +258316,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2102486052} m_CullTransparentMesh: 1 +--- !u!114 &2102486058 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2102486052} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: << back >> + textPolish: << powrot >> + displayText: {fileID: 2102486056} --- !u!1 &2128113334 GameObject: m_ObjectHideFlags: 0 @@ -258144,6 +258711,42 @@ PrefabInstance: propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 551619107} + - target: {fileID: 1885730412951883911, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_SizeDelta.x + value: 112.4959 + objectReference: {fileID: 0} + - target: {fileID: 1885730412951883911, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_SizeDelta.y + value: 91.876 + objectReference: {fileID: 0} + - target: {fileID: 1885730412951883911, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_AnchoredPosition.x + value: 301.4 + objectReference: {fileID: 0} + - target: {fileID: 1885730412951883911, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_AnchoredPosition.y + value: -194 + objectReference: {fileID: 0} + - target: {fileID: 1885730413234353642, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} + - target: {fileID: 1885730413234353643, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_SizeDelta.x + value: 18.221 + objectReference: {fileID: 0} + - target: {fileID: 1885730413234353643, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_SizeDelta.y + value: -30.8088 + objectReference: {fileID: 0} + - target: {fileID: 1885730413234353643, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_AnchoredPosition.x + value: -1 + objectReference: {fileID: 0} + - target: {fileID: 1885730413234353643, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} + propertyPath: m_AnchoredPosition.y + value: -0.0000076294 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} --- !u!1001 &2338815117836677046 @@ -258153,6 +258756,22 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 1866620309} m_Modifications: + - target: {fileID: 2338815116873632730, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2338815116873632730, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_AnchoredPosition.y + value: -0.000015258789 + objectReference: {fileID: 0} + - target: {fileID: 2338815116873632731, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} + - target: {fileID: 2338815116873632731, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_FontData.m_Alignment + value: 3 + objectReference: {fileID: 0} - target: {fileID: 2338815117690107019, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: @@ -258245,10 +258864,30 @@ PrefabInstance: propertyPath: m_Name value: FinishQuestPanel objectReference: {fileID: 0} + - target: {fileID: 2338815118077181735, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} - target: {fileID: 2338815118194136240, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 551619107} + - target: {fileID: 2338815118430342120, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_AnchoredPosition.x + value: -13.7 + objectReference: {fileID: 0} + - target: {fileID: 2338815118430342121, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} + - target: {fileID: 2338815118430342121, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_FontData.m_Alignment + value: 3 + objectReference: {fileID: 0} + - target: {fileID: 2338815118713828403, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} --- !u!1001 &5245844912020208448 @@ -258274,6 +258913,10 @@ PrefabInstance: propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 551619107} + - target: {fileID: 5245844912008955766, guid: bb5308fba8936aa479d242e38a056110, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} - target: {fileID: 5245844912172010177, guid: bb5308fba8936aa479d242e38a056110, type: 3} propertyPath: m_Name value: QuestPanel @@ -258366,5 +259009,9 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 5245844912540369923, guid: bb5308fba8936aa479d242e38a056110, type: 3} + propertyPath: m_Text + value: + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: bb5308fba8936aa479d242e38a056110, type: 3} diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity index 2e402083..e5b9c55c 100644 --- a/Assets/Scenes/Main Menu.unity +++ b/Assets/Scenes/Main Menu.unity @@ -3295,6 +3295,7 @@ GameObject: - component: {fileID: 1401167277} - component: {fileID: 1401167279} - component: {fileID: 1401167278} + - component: {fileID: 1401167280} m_Layer: 5 m_Name: NewGameText m_TagString: Untagged @@ -3418,6 +3419,21 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1401167276} m_CullTransparentMesh: 1 +--- !u!114 &1401167280 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1401167276} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a7c996be5c675ec4eb062e7ae1509118, type: 3} + m_Name: + m_EditorClassIdentifier: + textEnglish: {fileID: 0} + textPolish: {fileID: 0} + displayText: {fileID: 0} --- !u!1 &1617351645 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/NPCs' Scripts/NPCDialogue.cs b/Assets/Scripts/NPCs' Scripts/NPCDialogue.cs index d077727e..6bf324bd 100644 --- a/Assets/Scripts/NPCs' Scripts/NPCDialogue.cs +++ b/Assets/Scripts/NPCs' Scripts/NPCDialogue.cs @@ -9,9 +9,20 @@ public class NPCDialogue : MonoBehaviour public Text nameText; public Text nameText1; public Text dialogueText; + //first dialogue public Dialogue dialogue; + //dialogue during quest public Dialogue dialogueWQuest; + //dialotgue after quest public Dialogue dialogueAQuest; + //first dialogue + public Dialogue dialoguePolish; + //dialogue during quest + public Dialogue dialogueWQuestPolish; + //dialotgue after quest + public Dialogue dialogueAQuestPolish; + + private string language; private Queue sentences; private Queue sentencesWQuest; @@ -46,17 +57,63 @@ public class NPCDialogue : MonoBehaviour public void TriggerDialogue() { + language = PlayerPrefs.GetString("language"); if (isQuest == 2) { - StartDialogue(dialogueWQuest); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogueWQuest); + } + else if (language == "Polish") + { + StartDialogue(dialogueWQuestPolish); + } + } + else + { + StartDialogue(dialogueWQuest); + } } else if (isQuest == 3) { - StartDialogue(dialogueAQuest); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogueAQuest); + } + else if (language == "Polish") + { + StartDialogue(dialogueAQuestPolish); + } + } + else + { + StartDialogue(dialogueAQuest); + } } else { - StartDialogue(dialogue); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogue); + } + else if (language == "Polish") + { + StartDialogue(dialoguePolish); + } + } + else + { + StartDialogue(dialogue); + } } } @@ -98,17 +155,62 @@ public class NPCDialogue : MonoBehaviour FinishQuestPanel.SetActive(true); Panel.SetActive(false); } else { - StartDialogue(dialogueWQuest); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogueWQuest); + } + else if (language == "Polish") + { + StartDialogue(dialogueWQuestPolish); + } + } + else + { + StartDialogue(dialogueWQuest); + } } } else if (isQuest == 3) { - StartDialogue(dialogueAQuest); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogueAQuest); + } + else if (language == "Polish") + { + StartDialogue(dialogueAQuestPolish); + } + } + else + { + StartDialogue(dialogueAQuest); + } } else { - StartDialogue(dialogue); + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + StartDialogue(dialogue); + } + else if (language == "Polish") + { + StartDialogue(dialoguePolish); + } + } + else + { + StartDialogue(dialogue); + } } } } diff --git a/Assets/TranslateText.cs b/Assets/TranslateText.cs new file mode 100644 index 00000000..44ce00bc --- /dev/null +++ b/Assets/TranslateText.cs @@ -0,0 +1,57 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class TranslateText : MonoBehaviour +{ + public string textEnglish; + public string textPolish; + public Text displayText; + private string language; + // Start is called before the first frame update + void Start() + { + language = PlayerPrefs.GetString("language"); + + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + displayText.text = textEnglish; + } + else if (language == "Polish") + { + displayText.text = textPolish; + } + } + else + { + displayText.text = textEnglish; + } + } + + // Update is called once per frame + void Update() + { + language = PlayerPrefs.GetString("language"); + + if (PlayerPrefs.HasKey("language")) + { + language = PlayerPrefs.GetString("language"); + if (language == "English") + { + displayText.text = textEnglish; + } + else if (language == "Polish") + { + displayText.text = textPolish; + } + } + else + { + displayText.text = textEnglish; + } + } +} diff --git a/Assets/TranslateText.cs.meta b/Assets/TranslateText.cs.meta new file mode 100644 index 00000000..56e0fc09 --- /dev/null +++ b/Assets/TranslateText.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a7c996be5c675ec4eb062e7ae1509118 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UserSettings/EditorUserSettings.asset b/UserSettings/EditorUserSettings.asset index 6a19aa33..772b329f 100644 --- a/UserSettings/EditorUserSettings.asset +++ b/UserSettings/EditorUserSettings.asset @@ -24,16 +24,16 @@ EditorUserSettings: value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a1532f0e1372ce7f518e8ea3f7129370bfb25 flags: 0 RecentlyUsedScenePath-6: - value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d - flags: 0 - RecentlyUsedScenePath-7: value: 22424703114646680e0b0227036c72111f19352f223d667d6d051c3de5f5353fe7a923e7ee2e26 flags: 0 + RecentlyUsedScenePath-7: + value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d + flags: 0 RecentlyUsedScenePath-8: - value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021 + value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb flags: 0 RecentlyUsedScenePath-9: - value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb + value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021 flags: 0 vcSharedLogLevel: value: 0d5e400f0650