Skip to content
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
3 changes: 2 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
run: |
mkdir -p Release/Samples~
cp -a Packages/com.trytalo.talo/. Release
cp -a Assets/. Release/Samples~/Playground
cp -a Assets/Playground/. Release/Samples~/Playground
cp -a Assets/SavesDemo/. Release/Samples~/SavesDemo

- name: Copy to package repo (main branch)
uses: tudddorrr/github-action-push-to-another-repository@main
Expand Down
2 changes: 1 addition & 1 deletion Assets/Scripts/Saves.meta → Assets/Samples.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Samples/Playground.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions Assets/Samples/Playground/Scripts/Players/IdentifyPlayer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using UnityEngine;
using UnityEngine.UI;
using TaloGameServices;
using System.Threading.Tasks;

public class IdentifyPlayer : MonoBehaviour
{
public string service, identifier;

public async void OnButtonClick()
{
await Identify();
}

private async Task Identify()
{
try
{
await Talo.Players.Identify(service, identifier);

var panel = GameObject.Find("Panel");
if (panel != null)
{
ResponseMessage.SetText("Identified!");
panel.GetComponent<Image>().color = new Color(135 / 255f, 1f, 135 / 255f);
}
}
catch (Exception err)
{
ResponseMessage.SetText(err.Message);
throw err;
}
}
}
File renamed without changes.
8 changes: 8 additions & 0 deletions Assets/Samples/SavesDemo.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Cube
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
Expand Down Expand Up @@ -55,6 +56,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
Expand Down
8 changes: 8 additions & 0 deletions Assets/Samples/SavesDemo/Scenes.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading