Skip to content

Commit 8fbcdc7

Browse files
committed
first commit
0 parents  commit 8fbcdc7

File tree

900 files changed

+122250
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

900 files changed

+122250
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.dll filter=lfs diff=lfs merge=lfs -text

.gitignore

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# This .gitignore file should be placed at the root of your Unity project directory
2+
#
3+
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
4+
#
5+
[Ll]ibrary/
6+
[Tt]emp/
7+
[Oo]bj/
8+
[Bb]uild/
9+
[Bb]uilds/
10+
[Ll]ogs/
11+
[Uu]ser[Ss]ettings/
12+
13+
# MemoryCaptures can get excessive in size.
14+
# They also could contain extremely sensitive data
15+
/[Mm]emoryCaptures/
16+
17+
# Recordings can get excessive in size
18+
/[Rr]ecordings/
19+
20+
# Uncomment this line if you wish to ignore the asset store tools plugin
21+
# /[Aa]ssets/AssetStoreTools*
22+
23+
# Autogenerated Jetbrains Rider plugin
24+
/[Aa]ssets/Plugins/Editor/JetBrains*
25+
26+
# Visual Studio cache directory
27+
.vs/
28+
29+
# Gradle cache directory
30+
.gradle/
31+
32+
# Autogenerated VS/MD/Consulo solution and project files
33+
ExportedObj/
34+
.consulo/
35+
*.csproj
36+
*.unityproj
37+
*.sln
38+
*.suo
39+
*.tmp
40+
*.user
41+
*.userprefs
42+
*.pidb
43+
*.booproj
44+
*.svd
45+
*.pdb
46+
*.mdb
47+
*.opendb
48+
*.VC.db
49+
50+
# Unity3D generated meta files
51+
*.pidb.meta
52+
*.pdb.meta
53+
*.mdb.meta
54+
55+
# Unity3D generated file on crash reports
56+
sysinfo.txt
57+
58+
# Builds
59+
*.apk
60+
*.aab
61+
*.unitypackage
62+
*.app
63+
64+
# Crashlytics generated file
65+
crashlytics-build.properties
66+
67+
# Packed Addressables
68+
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
69+
70+
# Temporary auto-generated Android Assets
71+
/[Aa]ssets/[Ss]treamingAssets/aa.meta
72+
/[Aa]ssets/[Ss]treamingAssets/aa/*
73+
74+
.DS_Store
75+
._.DS_Store

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# unity-immutable-sdk

sample/Assets/SampleScript.cs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using System.Collections;
2+
using System.Collections.Generic;
3+
using UnityEngine;
4+
using UnityEngine.UI;
5+
using Immutable.Passport;
6+
using UnityEditor;
7+
8+
public class SampleScript : MonoBehaviour
9+
{
10+
[SerializeField] private Passport passport;
11+
12+
[SerializeField] private Button connectButton;
13+
[SerializeField] private Button getAddressButton;
14+
[SerializeField] private Button logoutButton;
15+
16+
void Start()
17+
{
18+
Debug.Log($"Found passport? {passport != null}");
19+
}
20+
21+
public async void Connect() {
22+
bool success = await passport.Connect();
23+
showDialog("Successfully connected to Passport");
24+
}
25+
26+
public async void GetAddress() {
27+
string? address = await passport.GetAddress();
28+
showDialog($"Address {address}");
29+
}
30+
31+
public async void Logout() {
32+
passport.Logout();
33+
showDialog("Logged out");
34+
}
35+
36+
private void showDialog(string message) {
37+
EditorUtility.DisplayDialog("Output", message, "OK");
38+
}
39+
}

sample/Assets/SampleScript.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/Assets/Scenes.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)