Skip to content

Commit 9e92425

Browse files
authored
Merge pull request #93 from TaloDev/develop
Release 0.29.0
2 parents 851d9ba + 94b7733 commit 9e92425

File tree

8 files changed

+42
-15
lines changed

8 files changed

+42
-15
lines changed

Assets/Samples/SavesDemo/Scripts/MenuUIController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using UnityEngine;
22
using TaloGameServices;
33
using UnityEngine.UIElements;
4+
using System;
45

56
namespace TaloSavesDemo
67
{
@@ -49,12 +50,13 @@ public void SetContinueButtonVisibility(DisplayStyle style)
4950

5051
private async void OnNewGameClick()
5152
{
52-
foreach (var cube in FindObjectsOfType<LoadableCube>())
53+
foreach (var cube in FindObjectsByType<LoadableCube>(FindObjectsSortMode.None))
5354
{
5455
cube.MoveToOriginalPos();
5556
}
5657

57-
var save = await Talo.Saves.CreateSave($"Save {(Talo.Saves.Latest?.id ?? 0) + 1}");
58+
var date = DateTime.Now.ToString("ddd dd MMM HH:mm:ss");
59+
var save = await Talo.Saves.CreateSave($"Save created {date}");
5860
Talo.Saves.ChooseSave(save.id);
5961

6062
SendMessageUpwards("AddNewSaveToList", SendMessageOptions.RequireReceiver);

Assets/Samples/SavesDemo/Settings/Panel Settings.asset

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ MonoBehaviour:
1313
m_Name: Panel Settings
1414
m_EditorClassIdentifier:
1515
themeUss: {fileID: -4733365628477956816, guid: e0377916dba174af38fd1be6e27c9cca, type: 3}
16+
m_DisableNoThemeWarning: 0
1617
m_TargetTexture: {fileID: 0}
18+
m_RenderMode: 0
19+
m_WorldSpaceLayer: 0
1720
m_ScaleMode: 2
1821
m_ReferenceSpritePixelsPerUnit: 100
22+
m_PixelsPerUnit: 100
1923
m_Scale: 1
2024
m_ReferenceDpi: 96
2125
m_FallbackDpi: 96
@@ -24,9 +28,11 @@ MonoBehaviour:
2428
m_Match: 0
2529
m_SortingOrder: 0
2630
m_TargetDisplay: 0
31+
m_BindingLogLevel: 0
2732
m_ClearDepthStencil: 1
2833
m_ClearColor: 0
2934
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
35+
m_VertexBudget: 0
3036
m_DynamicAtlasSettings:
3137
m_MinAtlasSize: 64
3238
m_MaxAtlasSize: 4096
@@ -35,4 +41,6 @@ MonoBehaviour:
3541
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
3642
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
3743
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
44+
m_ICUDataAsset: {fileID: 0}
45+
forceGammaRendering: 0
3846
textSettings: {fileID: 0}

Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ private GameSave UpdateOfflineSaves(GameSave incomingSave)
206206
else
207207
{
208208
// first entry into the saves file
209-
offlineIncomingSave.id = -1;
209+
if (offlineIncomingSave.id == 0)
210+
{
211+
offlineIncomingSave.id = -1;
212+
}
210213
offlineContent = new OfflineSavesContent(new GameSave[] { offlineIncomingSave });
211214
}
212215

Packages/com.trytalo.talo/Runtime/Talo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static Player CurrentPlayer
4646
private static ContinuityManager _continuity;
4747
public static ContinuityManager Continuity => _continuity;
4848

49-
public static TaloSettings Settings => UnityEngine.Object.FindObjectOfType<TaloManager>().settings;
49+
public static TaloSettings Settings => UnityEngine.Object.FindFirstObjectByType<TaloManager>().settings;
5050

5151
private static LiveConfig _liveConfig;
5252

@@ -130,7 +130,7 @@ static Talo()
130130
}
131131
else
132132
{
133-
tm = UnityEngine.Object.FindObjectOfType<TaloManager>();
133+
tm = UnityEngine.Object.FindFirstObjectByType<TaloManager>();
134134
}
135135

136136
_crypto = new CryptoManager();

Packages/com.trytalo.talo/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "com.trytalo.talo",
3-
"version": "0.28.0",
3+
"version": "0.29.0",
44
"displayName": "Talo Game Services",
55
"description": "Talo (https://trytalo.com) is an open-source game backend with services designed to help you build games faster. You can currently:\n\n- Identify and authenticate players\n- Store persistent data across players\n- Track events (levelling up, finding loot, etc)\n- Display high scores with leaderboards\n- Store and load player saves\n- Load game config options and flags from the cloud\n- Get feedback directly from your players",
6-
"unity": "2022.3",
6+
"unity": "6000.0",
77
"keywords": [],
88
"author": {
99
"name": "Talo",

Packages/manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"dependencies": {
33
"com.unity.ide.visualstudio": "2.0.22",
4-
"com.unity.test-framework": "1.3.0",
5-
"com.unity.ugui": "1.0.0",
4+
"com.unity.test-framework": "1.4.5",
5+
"com.unity.ugui": "2.0.0",
6+
"com.unity.modules.accessibility": "1.0.0",
67
"com.unity.modules.ai": "1.0.0",
78
"com.unity.modules.androidjni": "1.0.0",
89
"com.unity.modules.animation": "1.0.0",

Packages/packages-lock.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"com.unity.ext.nunit": {
12-
"version": "2.0.3",
12+
"version": "2.0.5",
1313
"depth": 1,
1414
"source": "registry",
1515
"dependencies": {},
@@ -25,7 +25,7 @@
2525
"url": "https://packages.unity.com"
2626
},
2727
"com.unity.test-framework": {
28-
"version": "1.3.0",
28+
"version": "1.4.5",
2929
"depth": 0,
3030
"source": "registry",
3131
"dependencies": {
@@ -36,14 +36,20 @@
3636
"url": "https://packages.unity.com"
3737
},
3838
"com.unity.ugui": {
39-
"version": "1.0.0",
39+
"version": "2.0.0",
4040
"depth": 0,
4141
"source": "builtin",
4242
"dependencies": {
4343
"com.unity.modules.ui": "1.0.0",
4444
"com.unity.modules.imgui": "1.0.0"
4545
}
4646
},
47+
"com.unity.modules.accessibility": {
48+
"version": "1.0.0",
49+
"depth": 0,
50+
"source": "builtin",
51+
"dependencies": {}
52+
},
4753
"com.unity.modules.ai": {
4854
"version": "1.0.0",
4955
"depth": 0,
@@ -91,6 +97,12 @@
9197
"com.unity.modules.animation": "1.0.0"
9298
}
9399
},
100+
"com.unity.modules.hierarchycore": {
101+
"version": "1.0.0",
102+
"depth": 1,
103+
"source": "builtin",
104+
"dependencies": {}
105+
},
94106
"com.unity.modules.imageconversion": {
95107
"version": "1.0.0",
96108
"depth": 0,
@@ -179,7 +191,8 @@
179191
"dependencies": {
180192
"com.unity.modules.ui": "1.0.0",
181193
"com.unity.modules.imgui": "1.0.0",
182-
"com.unity.modules.jsonserialize": "1.0.0"
194+
"com.unity.modules.jsonserialize": "1.0.0",
195+
"com.unity.modules.hierarchycore": "1.0.0"
183196
}
184197
},
185198
"com.unity.modules.umbra": {

ProjectSettings/ProjectVersion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2022.3.28f1
2-
m_EditorVersionWithRevision: 2022.3.28f1 (6bae5ce6b222)
1+
m_EditorVersion: 6000.0.28f1
2+
m_EditorVersionWithRevision: 6000.0.28f1 (f336aca0cab5)

0 commit comments

Comments
 (0)