diff --git a/Assets/ChangeLanguageToEnglish.cs b/Assets/ChangeLanguageToEnglish.cs new file mode 100644 index 00000000..e0ab1e90 --- /dev/null +++ b/Assets/ChangeLanguageToEnglish.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + + +public class ChangeLanguageToEnglish : MonoBehaviour +{ + + + public void SetLanguageToEnglish() + { + PlayerPrefs.SetString("language", "English"); + } + + public void SetLanguageToPolish() + { + PlayerPrefs.SetString("language", "Polish"); + } +} + diff --git a/Assets/ChangeLanguageToEnglish.cs.meta b/Assets/ChangeLanguageToEnglish.cs.meta new file mode 100644 index 00000000..ae0dd756 --- /dev/null +++ b/Assets/ChangeLanguageToEnglish.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1dfbf0ef278f6b546829f41d6d5b960a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/LetterText.cs b/Assets/LetterText.cs new file mode 100644 index 00000000..61e1d98a --- /dev/null +++ b/Assets/LetterText.cs @@ -0,0 +1,36 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + + +public class LetterText : MonoBehaviour +{ + + public Text letterText; + 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") + { + letterText.text = "Bring back my family heirloom that was stolen by bandits hiding in the nearby cave and I will reward you generously."; + } + else if (language == "Polish") + { + letterText.text = "Przynies mi spadek po mojej rodzinie, ktory zostal skradziony przez bandytow chowajacych sie w pobliskiej jaskini, a zostaniesz hojnie nagrodzony."; + } + } + else + { + letterText.text = "Bring back my family heirloom that was stolen by bandits hiding in the nearby cave and I will reward you generously."; + } + } + +} diff --git a/Assets/LetterText.cs.meta b/Assets/LetterText.cs.meta new file mode 100644 index 00000000..551aa387 --- /dev/null +++ b/Assets/LetterText.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2cd1fdde3e5718649a64cbfee0c0fde2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Mercenary.cs b/Assets/Mercenary.cs new file mode 100644 index 00000000..b4aead4b --- /dev/null +++ b/Assets/Mercenary.cs @@ -0,0 +1,39 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class Mercenary : MonoBehaviour +{ + + public Text nameText; + public string name; + 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") + { + name = PlayerPrefs.GetString("name"); + nameText.text = "Mercenary " + name + ","; + } + else if(language == "Polish") + { + name = PlayerPrefs.GetString("name"); + nameText.text = "Najemniku " + name + ","; + } + } + else{ + name = PlayerPrefs.GetString("name"); + nameText.text = "Mercenary " + name + ","; + } + } + +} diff --git a/Assets/Mercenary.cs.meta b/Assets/Mercenary.cs.meta new file mode 100644 index 00000000..49891f33 --- /dev/null +++ b/Assets/Mercenary.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac6accc6818b2c240b5867e8fb237d48 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scenes/CaveEntrance.unity b/Assets/Scenes/CaveEntrance.unity index ddd1acc8..830b61ed 100644 --- a/Assets/Scenes/CaveEntrance.unity +++ b/Assets/Scenes/CaveEntrance.unity @@ -23989,7 +23989,8 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3.5, y: 3, z: 1} - m_Children: [] + m_Children: + - {fileID: 603154668} m_Father: {fileID: 1174630501} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -24031,7 +24032,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Mercenary + m_Text: --- !u!222 &131906522 CanvasRenderer: m_ObjectHideFlags: 0 @@ -24072,7 +24073,7 @@ RectTransform: m_Children: - {fileID: 1546100804} m_Father: {fileID: 1174630501} - m_RootOrder: 3 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -50781,7 +50782,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 17 + m_RootOrder: 16 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &251828924 MonoBehaviour: @@ -51413,7 +51414,7 @@ Transform: - {fileID: 506182054} - {fileID: 65559431} m_Father: {fileID: 0} - m_RootOrder: 16 + m_RootOrder: 15 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &329699091 GameObject: @@ -55084,53 +55085,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 455305910} m_CullTransparentMesh: 1 ---- !u!1 &455489656 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 455489658} - - component: {fileID: 455489657} - m_Layer: 0 - m_Name: PlayerName - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!114 &455489657 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 455489656} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: cbbeeb60d32651f4bbe2345ebca6cd3f, type: 3} - m_Name: - m_EditorClassIdentifier: - nameOfPlayer: - saveName: - inputText: {fileID: 0} - loadedName: {fileID: 1109885949} ---- !u!4 &455489658 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 455489656} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.8111686, y: -1.8256695, z: -6.1529746} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 6 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &464012280 GameObject: m_ObjectHideFlags: 0 @@ -55387,6 +55341,8 @@ GameObject: - component: {fileID: 486623990} - component: {fileID: 486623992} - component: {fileID: 486623991} + - component: {fileID: 486623994} + - component: {fileID: 486623993} m_Layer: 5 m_Name: Language2 m_TagString: Untagged @@ -55446,7 +55402,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: . + m_Text: Polsih --- !u!222 &486623992 CanvasRenderer: m_ObjectHideFlags: 0 @@ -55455,6 +55411,74 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 486623989} m_CullTransparentMesh: 1 +--- !u!114 &486623993 +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: 1dfbf0ef278f6b546829f41d6d5b960a, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &486623994 +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: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 486623991} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 486623993} + m_TargetAssemblyTypeName: ChangeLanguageToEnglish, Assembly-CSharp + m_MethodName: SetLanguageToPolish + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 --- !u!1 &506182053 GameObject: m_ObjectHideFlags: 0 @@ -56383,6 +56407,56 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 603032473} m_CullTransparentMesh: 1 +--- !u!1 &603154667 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 603154668} + - component: {fileID: 603154669} + m_Layer: 5 + m_Name: Text + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &603154668 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 603154667} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 131906520} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &603154669 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 603154667} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: ac6accc6818b2c240b5867e8fb237d48, type: 3} + m_Name: + m_EditorClassIdentifier: + nameText: {fileID: 131906521} + name: --- !u!1 &605639182 GameObject: m_ObjectHideFlags: 0 @@ -78167,7 +78241,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 11 + m_RootOrder: 10 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &791282140 GameObject: @@ -108408,7 +108482,7 @@ Transform: - {fileID: 270516053} - {fileID: 464012281} m_Father: {fileID: 0} - m_RootOrder: 10 + m_RootOrder: 9 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &827196534 GameObject: @@ -108680,6 +108754,55 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 845223940} m_CullTransparentMesh: 1 +--- !u!1 &860173530 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 860173531} + - component: {fileID: 860173532} + m_Layer: 5 + m_Name: LetterText + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &860173531 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 860173530} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 1956597452} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &860173532 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 860173530} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2cd1fdde3e5718649a64cbfee0c0fde2, type: 3} + m_Name: + m_EditorClassIdentifier: + letterText: {fileID: 1956597453} --- !u!1 &865356172 GameObject: m_ObjectHideFlags: 0 @@ -108784,7 +108907,7 @@ RectTransform: - {fileID: 1101338460} - {fileID: 1738591102} m_Father: {fileID: 0} - m_RootOrder: 8 + m_RootOrder: 7 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} @@ -114539,7 +114662,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 13 + m_RootOrder: 12 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &958374414 GameObject: @@ -120803,85 +120926,6 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1101338459} m_CullTransparentMesh: 1 ---- !u!1 &1109885947 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1109885948} - - component: {fileID: 1109885950} - - component: {fileID: 1109885949} - m_Layer: 5 - m_Name: PlayerName - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!224 &1109885948 -RectTransform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109885947} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 3.5, y: 3, z: 1} - m_Children: [] - m_Father: {fileID: 1174630501} - m_RootOrder: 1 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0.5} - m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 185, y: 135} - m_SizeDelta: {x: 160, y: 15} - m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1109885949 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109885947} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Material: {fileID: 0} - m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1} - m_RaycastTarget: 1 - m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} - m_Maskable: 1 - m_OnCullStateChanged: - m_PersistentCalls: - m_Calls: [] - m_FontData: - m_Font: {fileID: 12800000, guid: 884c49ec4abfe5a42b334668d8c1d9aa, type: 2} - m_FontSize: 0 - m_FontStyle: 0 - m_BestFit: 0 - m_MinSize: 0 - m_MaxSize: 40 - m_Alignment: 0 - m_AlignByGeometry: 0 - m_RichText: 1 - m_HorizontalOverflow: 0 - m_VerticalOverflow: 0 - m_LineSpacing: 1 - m_Text: x ---- !u!222 &1109885950 -CanvasRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1109885947} - m_CullTransparentMesh: 1 --- !u!1 &1113185083 GameObject: m_ObjectHideFlags: 0 @@ -120911,7 +120955,7 @@ Transform: m_Children: - {fileID: 919303325} m_Father: {fileID: 0} - m_RootOrder: 14 + m_RootOrder: 13 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1113987070 GameObject: @@ -126175,7 +126219,6 @@ RectTransform: m_LocalScale: {x: 0.4999999, y: 0.8499999, z: 1} m_Children: - {fileID: 131906520} - - {fileID: 1109885948} - {fileID: 1956597452} - {fileID: 144172499} m_Father: {fileID: 1866620309} @@ -186930,7 +186973,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 15 + m_RootOrder: 14 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1290903873 GameObject: @@ -191822,6 +191865,8 @@ GameObject: - component: {fileID: 1301601625} - component: {fileID: 1301601627} - component: {fileID: 1301601626} + - component: {fileID: 1301601629} + - component: {fileID: 1301601628} m_Layer: 5 m_Name: Language1 m_TagString: Untagged @@ -191881,7 +191926,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: . + m_Text: English --- !u!222 &1301601627 CanvasRenderer: m_ObjectHideFlags: 0 @@ -191890,6 +191935,74 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1301601624} m_CullTransparentMesh: 1 +--- !u!114 &1301601628 +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: 1dfbf0ef278f6b546829f41d6d5b960a, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &1301601629 +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: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1301601626} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 1301601628} + m_TargetAssemblyTypeName: ChangeLanguageToEnglish, Assembly-CSharp + m_MethodName: SetLanguageToEnglish + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 --- !u!1 &1304852185 GameObject: m_ObjectHideFlags: 0 @@ -206826,7 +206939,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 7 + m_RootOrder: 6 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1422119646 GameObject: @@ -224934,7 +225047,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 12 + m_RootOrder: 11 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1612202804 GameObject: @@ -230548,7 +230661,7 @@ Transform: m_LocalScale: {x: 1, y: 1, z: 1} m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 9 + m_RootOrder: 8 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1767827228 GameObject: @@ -245869,9 +245982,10 @@ RectTransform: m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 3.5, y: 3, z: 1} - m_Children: [] + m_Children: + - {fileID: 860173531} m_Father: {fileID: 1174630501} - m_RootOrder: 2 + m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} @@ -245911,8 +246025,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: Bring back my family heirloom that was stolen by bandits hiding in the - nearby cave and I will reward you generously. + m_Text: --- !u!222 &1956597454 CanvasRenderer: m_ObjectHideFlags: 0 diff --git a/Assets/Scenes/MainMenu - Language.unity b/Assets/Scenes/MainMenu - Language.unity index 4d8522f2..87cc0650 100644 --- a/Assets/Scenes/MainMenu - Language.unity +++ b/Assets/Scenes/MainMenu - Language.unity @@ -180,7 +180,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: . + m_text: to be decided... m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -450,7 +450,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: . + m_text: Polish m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -799,7 +799,19 @@ MonoBehaviour: m_TargetGraphic: {fileID: 684477376} m_OnClick: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 1721186662} + m_TargetAssemblyTypeName: ChangeLanguageToEnglish, Assembly-CSharp + m_MethodName: SetLanguageToPolish + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 --- !u!114 &684477376 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1003,7 +1015,19 @@ MonoBehaviour: m_TargetGraphic: {fileID: 805192519} m_OnClick: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 1721186662} + m_TargetAssemblyTypeName: ChangeLanguageToEnglish, Assembly-CSharp + m_MethodName: SetLanguageToEnglish + m_Mode: 1 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 --- !u!114 &805192519 MonoBehaviour: m_ObjectHideFlags: 0 @@ -3193,7 +3217,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: . + m_text: English m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -3406,6 +3430,49 @@ RectTransform: m_AnchoredPosition: {x: 1920, y: 1080} m_SizeDelta: {x: 3840, y: 2160} m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &1721186661 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1721186663} + - component: {fileID: 1721186662} + m_Layer: 0 + m_Name: SetLanguage + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1721186662 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1721186661} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 1dfbf0ef278f6b546829f41d6d5b960a, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!4 &1721186663 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1721186661} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 2.220497, y: -0.3124521, z: -0.052029416} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2108605445 GameObject: m_ObjectHideFlags: 0 diff --git a/UserSettings/EditorUserSettings.asset b/UserSettings/EditorUserSettings.asset index 93f7096b..6a19aa33 100644 --- a/UserSettings/EditorUserSettings.asset +++ b/UserSettings/EditorUserSettings.asset @@ -9,31 +9,31 @@ EditorUserSettings: value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a1532f0e1372ce7f518c8ea3f7129370bfb25 flags: 0 RecentlyUsedScenePath-1: - value: 22424703114646680e0b0227036c72111f19352f223d667d6d051c3de5f5353fe7a923e7ee2e26 - flags: 0 - RecentlyUsedScenePath-2: value: 22424703114646680e0b0227036c72111f19352f223d667d6d1a1827f6e93a3ff1a923e7ee2e26 flags: 0 - RecentlyUsedScenePath-3: + RecentlyUsedScenePath-2: value: 22424703114646680e0b0227036c72111f19352f223d667d6d1a1226ece42776f7e93ffdfe flags: 0 + RecentlyUsedScenePath-3: + value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a123df6f23b34f1a923e7ee2e26 + flags: 0 RecentlyUsedScenePath-4: value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a123df6f23b34f1a923e7ee2e26 flags: 0 RecentlyUsedScenePath-5: - value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a123df6f23b34f1a923e7ee2e26 - flags: 0 - RecentlyUsedScenePath-6: value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a1532f0e1372ce7f518e8ea3f7129370bfb25 flags: 0 - RecentlyUsedScenePath-7: + RecentlyUsedScenePath-6: value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d flags: 0 + RecentlyUsedScenePath-7: + value: 22424703114646680e0b0227036c72111f19352f223d667d6d051c3de5f5353fe7a923e7ee2e26 + flags: 0 RecentlyUsedScenePath-8: - value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb + value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021 flags: 0 RecentlyUsedScenePath-9: - value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021 + value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb flags: 0 vcSharedLogLevel: value: 0d5e400f0650