Skip to content

Commit

Permalink
v.1.0.3.28
Browse files Browse the repository at this point in the history
Updating the template background.
Updating the favicon template.
The language switch has been removed.
Updating the language selection logic.
  • Loading branch information
LLarean committed Oct 4, 2024
1 parent 6d0af07 commit e075c44
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 7 deletions.
Binary file modified Assets/WebGLTemplates/PluginYG/background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Assets/WebGLTemplates/PluginYG/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions Assets/YandexGame/LanguageInitializer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using Assets.SimpleLocalization.Scripts;
using UnityEngine;
using YG;

Expand All @@ -8,7 +9,8 @@ private void Start()
var lang = YandexGame.EnvironmentData.language;
var language = GetSystemLanguageString(lang);

Localization.SetLanguage(language);
LocalizationManager.Read();
LocalizationManager.Language = language;
}

private string GetSystemLanguageString(string lang)
Expand All @@ -17,7 +19,7 @@ private string GetSystemLanguageString(string lang)
{
"en" => GlobalStrings.English,
"ru" => GlobalStrings.Russian,
_ => GlobalStrings.English
_ => GlobalStrings.Russian
};

return language;
Expand Down
2 changes: 1 addition & 1 deletion Assets/YandexGame/WorkingData/InfoYG.asset
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MonoBehaviour:
payingStatus: paying
serverTime: 1721201231000
AdWhenLoadingScene: 0
showFirstAd: 1
showFirstAd: 0
rewardedAfterClosing: 1
adDisplayCalls: 0
fullscreenAdInterval: 60
Expand Down
46 changes: 43 additions & 3 deletions Assets/_Scenes/TabataTimer.unity
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ PrefabInstance:
propertyPath: m_Name
value: SettingsItem(Language)
objectReference: {fileID: 0}
- target: {fileID: 7465025340906995604, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8681513515093679695, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: _settingsType
value: 0
Expand Down Expand Up @@ -760,7 +764,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_AnchoredPosition.y
value: -890.5
value: -579
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -1277,6 +1281,41 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 529973953}
m_CullTransparentMesh: 1
--- !u!1 &600176591
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 600176592}
m_Layer: 5
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &600176592
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 600176591}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 989979315}
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: -340.8999, y: -988.75}
m_SizeDelta: {x: 398.2, y: 422.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &617343821
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1983,6 +2022,7 @@ RectTransform:
- {fileID: 1462170563}
- {fileID: 231594315}
- {fileID: 1582230033}
- {fileID: 600176592}
m_Father: {fileID: 1822010017}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
Expand Down Expand Up @@ -2315,7 +2355,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_AnchoredPosition.y
value: -387.5
value: -75.99999
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down Expand Up @@ -3470,7 +3510,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_AnchoredPosition.y
value: 115.5
value: 427
objectReference: {fileID: 0}
- target: {fileID: 6857819667911367269, guid: e346d53c2b5daa849aac9aa01cf3aaa5, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ PlayerSettings:
loadStoreDebugModeEnabled: 0
visionOSBundleVersion: 1.0
tvOSBundleVersion: 1.0
bundleVersion: 1.0.2.27
bundleVersion: 1.0.3.28
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit e075c44

Please sign in to comment.