-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
1,374 additions
and
176 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Assets/Samples/Playground/Scripts/Continuity/ToggleContinuity.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using UnityEngine; | ||
using TaloGameServices; | ||
using UnityEngine.UI; | ||
|
||
public class ToggleContinuity : MonoBehaviour | ||
{ | ||
private void Start() | ||
{ | ||
SetText(); | ||
} | ||
|
||
private bool GetValue() | ||
{ | ||
return Talo.Settings.continuityEnabled; | ||
} | ||
|
||
private void SetText() | ||
{ | ||
GetComponentInChildren<Text>().text = GetValue() ? "Toggle off" : "Toggle on"; | ||
} | ||
|
||
public void OnButtonClick() | ||
{ | ||
Talo.Settings.continuityEnabled = !Talo.Settings.continuityEnabled; | ||
SetText(); | ||
|
||
ResponseMessage.SetText($"Continuity is now {(Talo.Settings.continuityEnabled ? "enabled" : "disabled")}"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/Samples/Playground/Scripts/Continuity/ToggleContinuity.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
Assets/Samples/Playground/Scripts/Continuity/ToggleOfflineMode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using UnityEngine; | ||
using TaloGameServices; | ||
using UnityEngine.UI; | ||
|
||
public class ToggleOfflineMode : MonoBehaviour | ||
{ | ||
private void Start() | ||
{ | ||
SetText(); | ||
} | ||
|
||
private bool GetValue() | ||
{ | ||
return Talo.Settings.offlineMode; | ||
} | ||
|
||
private void SetText() | ||
{ | ||
GetComponentInChildren<Text>().text = GetValue() ? "Go online" : "Go offline"; | ||
} | ||
|
||
public void OnButtonClick() | ||
{ | ||
Talo.Settings.offlineMode = !Talo.Settings.offlineMode; | ||
SetText(); | ||
|
||
ResponseMessage.SetText($"You are now now {(Talo.Settings.offlineMode ? "offline" : "online")}"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/Samples/Playground/Scripts/Continuity/ToggleOfflineMode.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
namespace TaloGameServices | ||
{ | ||
public class ContinuityAPI : BaseAPI | ||
{ | ||
public ContinuityAPI() : base("") { } | ||
|
||
public async Task Replay( | ||
Uri uri, | ||
string method, | ||
string content, | ||
List<HttpHeader> headers | ||
) | ||
{ | ||
await Call(uri, method, content, headers, true); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
Packages/com.trytalo.talo/Runtime/Entities/OfflineSavesContent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.