migration from new repo
This commit is contained in:
commit
423134a840
26930 changed files with 3458568 additions and 0 deletions
34
Assets/_/Features/Tests/Runtime/testLocalization.cs
Normal file
34
Assets/_/Features/Tests/Runtime/testLocalization.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using Core.Runtime;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TestFacts.Runtime
|
||||
{
|
||||
public class testLocalization : BaseMonobehaviour
|
||||
{
|
||||
private LocalizationSystem _localization = LocalizationSystem.Instance;
|
||||
|
||||
[ContextMenu("Current Language ?")]
|
||||
public void GetCurrentLanguage()
|
||||
{
|
||||
_localization.LoadLanguage();
|
||||
// Affichage de la langue courante
|
||||
}
|
||||
|
||||
[ContextMenu("Mettre en anglais")]
|
||||
public void SetEnglish()
|
||||
{
|
||||
GameManager.Instance.CurrentLanguage = "en";
|
||||
_localization.SaveLanguage(GameManager.Instance.CurrentLanguage);
|
||||
SaveFacts("GeneralSettings");
|
||||
}
|
||||
|
||||
[ContextMenu("Mettre en français")]
|
||||
public void SetFrench()
|
||||
{
|
||||
GameManager.Instance.CurrentLanguage = "fr";
|
||||
_localization.SaveLanguage(GameManager.Instance.CurrentLanguage);
|
||||
SaveFacts("GeneralSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue