Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.29.0 #93

Merged
merged 6 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Assets/Samples/SavesDemo/Scripts/MenuUIController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using UnityEngine;
using TaloGameServices;
using UnityEngine.UIElements;
using System;

namespace TaloSavesDemo
{
Expand Down Expand Up @@ -49,12 +50,13 @@ public void SetContinueButtonVisibility(DisplayStyle style)

private async void OnNewGameClick()
{
foreach (var cube in FindObjectsOfType<LoadableCube>())
foreach (var cube in FindObjectsByType<LoadableCube>(FindObjectsSortMode.None))
{
cube.MoveToOriginalPos();
}

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

SendMessageUpwards("AddNewSaveToList", SendMessageOptions.RequireReceiver);
Expand Down
8 changes: 8 additions & 0 deletions Assets/Samples/SavesDemo/Settings/Panel Settings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ MonoBehaviour:
m_Name: Panel Settings
m_EditorClassIdentifier:
themeUss: {fileID: -4733365628477956816, guid: e0377916dba174af38fd1be6e27c9cca, type: 3}
m_DisableNoThemeWarning: 0
m_TargetTexture: {fileID: 0}
m_RenderMode: 0
m_WorldSpaceLayer: 0
m_ScaleMode: 2
m_ReferenceSpritePixelsPerUnit: 100
m_PixelsPerUnit: 100
m_Scale: 1
m_ReferenceDpi: 96
m_FallbackDpi: 96
Expand All @@ -24,9 +28,11 @@ MonoBehaviour:
m_Match: 0
m_SortingOrder: 0
m_TargetDisplay: 0
m_BindingLogLevel: 0
m_ClearDepthStencil: 1
m_ClearColor: 0
m_ColorClearValue: {r: 0, g: 0, b: 0, a: 0}
m_VertexBudget: 0
m_DynamicAtlasSettings:
m_MinAtlasSize: 64
m_MaxAtlasSize: 4096
Expand All @@ -35,4 +41,6 @@ MonoBehaviour:
m_AtlasBlitShader: {fileID: 9101, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeShader: {fileID: 9100, guid: 0000000000000000f000000000000000, type: 0}
m_RuntimeWorldShader: {fileID: 9102, guid: 0000000000000000f000000000000000, type: 0}
m_ICUDataAsset: {fileID: 0}
forceGammaRendering: 0
textSettings: {fileID: 0}
5 changes: 4 additions & 1 deletion Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ private GameSave UpdateOfflineSaves(GameSave incomingSave)
else
{
// first entry into the saves file
offlineIncomingSave.id = -1;
if (offlineIncomingSave.id == 0)
{
offlineIncomingSave.id = -1;
}
offlineContent = new OfflineSavesContent(new GameSave[] { offlineIncomingSave });
}

Expand Down
4 changes: 2 additions & 2 deletions Packages/com.trytalo.talo/Runtime/Talo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static Player CurrentPlayer
private static ContinuityManager _continuity;
public static ContinuityManager Continuity => _continuity;

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

private static LiveConfig _liveConfig;

Expand Down Expand Up @@ -130,7 +130,7 @@ static Talo()
}
else
{
tm = UnityEngine.Object.FindObjectOfType<TaloManager>();
tm = UnityEngine.Object.FindFirstObjectByType<TaloManager>();
}

_crypto = new CryptoManager();
Expand Down
4 changes: 2 additions & 2 deletions Packages/com.trytalo.talo/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "com.trytalo.talo",
"version": "0.28.0",
"version": "0.29.0",
"displayName": "Talo Game Services",
"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",
"unity": "2022.3",
"unity": "6000.0",
"keywords": [],
"author": {
"name": "Talo",
Expand Down
5 changes: 3 additions & 2 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"dependencies": {
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.test-framework": "1.3.0",
"com.unity.ugui": "1.0.0",
"com.unity.test-framework": "1.4.5",
"com.unity.ugui": "2.0.0",
"com.unity.modules.accessibility": "1.0.0",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.androidjni": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down
21 changes: 17 additions & 4 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
},
"com.unity.ext.nunit": {
"version": "2.0.3",
"version": "2.0.5",
"depth": 1,
"source": "registry",
"dependencies": {},
Expand All @@ -25,7 +25,7 @@
"url": "https://packages.unity.com"
},
"com.unity.test-framework": {
"version": "1.3.0",
"version": "1.4.5",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -36,14 +36,20 @@
"url": "https://packages.unity.com"
},
"com.unity.ugui": {
"version": "1.0.0",
"version": "2.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0"
}
},
"com.unity.modules.accessibility": {
"version": "1.0.0",
"depth": 0,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.ai": {
"version": "1.0.0",
"depth": 0,
Expand Down Expand Up @@ -91,6 +97,12 @@
"com.unity.modules.animation": "1.0.0"
}
},
"com.unity.modules.hierarchycore": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {}
},
"com.unity.modules.imageconversion": {
"version": "1.0.0",
"depth": 0,
Expand Down Expand Up @@ -179,7 +191,8 @@
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.hierarchycore": "1.0.0"
}
},
"com.unity.modules.umbra": {
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.28f1
m_EditorVersionWithRevision: 2022.3.28f1 (6bae5ce6b222)
m_EditorVersion: 6000.0.28f1
m_EditorVersionWithRevision: 6000.0.28f1 (f336aca0cab5)