Translated most elements on CaveEntrance map
This commit is contained in:
parent
4ae1a5838d
commit
70cefd6336
@ -48,6 +48,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="Assets\Scripts\RespawnScript.cs" />
|
<Compile Include="Assets\Scripts\RespawnScript.cs" />
|
||||||
|
<Compile Include="Assets\LetterText.cs" />
|
||||||
<Compile Include="Assets\Scripts\SceneManager\SceneTaskManager.cs" />
|
<Compile Include="Assets\Scripts\SceneManager\SceneTaskManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\SettingsButton.cs" />
|
<Compile Include="Assets\Scripts\SettingsButton.cs" />
|
||||||
<Compile Include="Assets\Scripts\UI\ISlot.cs" />
|
<Compile Include="Assets\Scripts\UI\ISlot.cs" />
|
||||||
@ -56,6 +57,7 @@
|
|||||||
<Compile Include="Assets\closePossibleButtonInfo.cs" />
|
<Compile Include="Assets\closePossibleButtonInfo.cs" />
|
||||||
<Compile Include="Assets\BreakOre.cs" />
|
<Compile Include="Assets\BreakOre.cs" />
|
||||||
<Compile Include="Assets\Scripts\Inventory\InventorySlot.cs" />
|
<Compile Include="Assets\Scripts\Inventory\InventorySlot.cs" />
|
||||||
|
<Compile Include="Assets\Mercenary.cs" />
|
||||||
<Compile Include="Assets\Scripts\Task\TaskPanelController.cs" />
|
<Compile Include="Assets\Scripts\Task\TaskPanelController.cs" />
|
||||||
<Compile Include="Assets\Scripts\Task\TaskManager.cs" />
|
<Compile Include="Assets\Scripts\Task\TaskManager.cs" />
|
||||||
<Compile Include="Assets\Scripts\Enemies' Scprits\FollowingPatrollingEnemy.cs" />
|
<Compile Include="Assets\Scripts\Enemies' Scprits\FollowingPatrollingEnemy.cs" />
|
||||||
@ -73,6 +75,7 @@
|
|||||||
<Compile Include="Assets\Scripts\Equipment\EquipmentPanelController.cs" />
|
<Compile Include="Assets\Scripts\Equipment\EquipmentPanelController.cs" />
|
||||||
<Compile Include="Assets\Scripts\PlayerPosition.cs" />
|
<Compile Include="Assets\Scripts\PlayerPosition.cs" />
|
||||||
<Compile Include="Assets\Scripts\Chest\ChestSlot.cs" />
|
<Compile Include="Assets\Scripts\Chest\ChestSlot.cs" />
|
||||||
|
<Compile Include="Assets\ChangeLanguageToEnglish.cs" />
|
||||||
<Compile Include="Assets\Scripts\CamerFollow.cs" />
|
<Compile Include="Assets\Scripts\CamerFollow.cs" />
|
||||||
<Compile Include="Assets\CloseIfQuestPanel.cs" />
|
<Compile Include="Assets\CloseIfQuestPanel.cs" />
|
||||||
<Compile Include="Assets\TreeParticleEffect.cs" />
|
<Compile Include="Assets\TreeParticleEffect.cs" />
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3295,6 +3295,7 @@ GameObject:
|
|||||||
- component: {fileID: 1401167277}
|
- component: {fileID: 1401167277}
|
||||||
- component: {fileID: 1401167279}
|
- component: {fileID: 1401167279}
|
||||||
- component: {fileID: 1401167278}
|
- component: {fileID: 1401167278}
|
||||||
|
- component: {fileID: 1401167280}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: NewGameText
|
m_Name: NewGameText
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -3418,6 +3419,21 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1401167276}
|
m_GameObject: {fileID: 1401167276}
|
||||||
m_CullTransparentMesh: 1
|
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
|
--- !u!1 &1617351645
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -9,9 +9,20 @@ public class NPCDialogue : MonoBehaviour
|
|||||||
public Text nameText;
|
public Text nameText;
|
||||||
public Text nameText1;
|
public Text nameText1;
|
||||||
public Text dialogueText;
|
public Text dialogueText;
|
||||||
|
//first dialogue
|
||||||
public Dialogue dialogue;
|
public Dialogue dialogue;
|
||||||
|
//dialogue during quest
|
||||||
public Dialogue dialogueWQuest;
|
public Dialogue dialogueWQuest;
|
||||||
|
//dialotgue after quest
|
||||||
public Dialogue dialogueAQuest;
|
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<string> sentences;
|
private Queue<string> sentences;
|
||||||
private Queue<string> sentencesWQuest;
|
private Queue<string> sentencesWQuest;
|
||||||
@ -46,19 +57,65 @@ public class NPCDialogue : MonoBehaviour
|
|||||||
|
|
||||||
public void TriggerDialogue()
|
public void TriggerDialogue()
|
||||||
{
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
if (isQuest == 2)
|
if (isQuest == 2)
|
||||||
|
{
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
{
|
{
|
||||||
StartDialogue(dialogueWQuest);
|
StartDialogue(dialogueWQuest);
|
||||||
}
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueWQuestPolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueWQuest);
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (isQuest == 3)
|
else if (isQuest == 3)
|
||||||
|
{
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
{
|
{
|
||||||
StartDialogue(dialogueAQuest);
|
StartDialogue(dialogueAQuest);
|
||||||
}
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueAQuestPolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueAQuest);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogue);
|
||||||
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialoguePolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StartDialogue(dialogue);
|
StartDialogue(dialogue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void OnTriggerExit2D(Collider2D collision)
|
void OnTriggerExit2D(Collider2D collision)
|
||||||
{
|
{
|
||||||
@ -98,14 +155,58 @@ public class NPCDialogue : MonoBehaviour
|
|||||||
FinishQuestPanel.SetActive(true);
|
FinishQuestPanel.SetActive(true);
|
||||||
Panel.SetActive(false);
|
Panel.SetActive(false);
|
||||||
} else {
|
} else {
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
|
{
|
||||||
StartDialogue(dialogueWQuest);
|
StartDialogue(dialogueWQuest);
|
||||||
}
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueWQuestPolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueWQuest);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (isQuest == 3)
|
else if (isQuest == 3)
|
||||||
|
{
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
{
|
{
|
||||||
StartDialogue(dialogueAQuest);
|
StartDialogue(dialogueAQuest);
|
||||||
}
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueAQuestPolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
StartDialogue(dialogueAQuest);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (PlayerPrefs.HasKey("language"))
|
||||||
|
{
|
||||||
|
language = PlayerPrefs.GetString("language");
|
||||||
|
if (language == "English")
|
||||||
|
{
|
||||||
|
StartDialogue(dialogue);
|
||||||
|
}
|
||||||
|
else if (language == "Polish")
|
||||||
|
{
|
||||||
|
StartDialogue(dialoguePolish);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StartDialogue(dialogue);
|
StartDialogue(dialogue);
|
||||||
@ -113,6 +214,7 @@ public class NPCDialogue : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void StartDialogue(Dialogue dialogue)
|
public void StartDialogue(Dialogue dialogue)
|
||||||
|
57
Assets/TranslateText.cs
Normal file
57
Assets/TranslateText.cs
Normal file
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
11
Assets/TranslateText.cs.meta
Normal file
11
Assets/TranslateText.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a7c996be5c675ec4eb062e7ae1509118
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -24,16 +24,16 @@ EditorUserSettings:
|
|||||||
value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a1532f0e1372ce7f518e8ea3f7129370bfb25
|
value: 22424703114646680e0b0227036c72111f19352f223d667d6d0a1532f0e1372ce7f518e8ea3f7129370bfb25
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedScenePath-6:
|
RecentlyUsedScenePath-6:
|
||||||
value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
|
|
||||||
flags: 0
|
|
||||||
RecentlyUsedScenePath-7:
|
|
||||||
value: 22424703114646680e0b0227036c72111f19352f223d667d6d051c3de5f5353fe7a923e7ee2e26
|
value: 22424703114646680e0b0227036c72111f19352f223d667d6d051c3de5f5353fe7a923e7ee2e26
|
||||||
flags: 0
|
flags: 0
|
||||||
|
RecentlyUsedScenePath-7:
|
||||||
|
value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
|
||||||
|
flags: 0
|
||||||
RecentlyUsedScenePath-8:
|
RecentlyUsedScenePath-8:
|
||||||
value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021
|
value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb
|
||||||
flags: 0
|
flags: 0
|
||||||
RecentlyUsedScenePath-9:
|
RecentlyUsedScenePath-9:
|
||||||
value: 22424703114646680e0b0227036c72111f1958072926337e38271427fb
|
value: 22424703114646680e0b0227036c7c1100123d24383a273e2e2c5326ece92021
|
||||||
flags: 0
|
flags: 0
|
||||||
vcSharedLogLevel:
|
vcSharedLogLevel:
|
||||||
value: 0d5e400f0650
|
value: 0d5e400f0650
|
||||||
|
Loading…
Reference in New Issue
Block a user