Skip to content

Commit 8a2c121

Browse files
committed
feat: build test for openInviteDialog
1 parent 7252a43 commit 8a2c121

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Assets/Scenes/TestScene.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ MonoBehaviour:
214214
m_fontSizeMin: 18
215215
m_fontSizeMax: 72
216216
m_fontStyle: 0
217-
m_HorizontalAlignment: 1
218-
m_VerticalAlignment: 256
217+
m_HorizontalAlignment: 2
218+
m_VerticalAlignment: 512
219219
m_textAlignment: 65535
220220
m_characterSpacing: 0
221221
m_wordSpacing: 0

Assets/Scripts/GameManager.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,13 @@ private void Update()
4343
Debug.Log("Token: " + _kit.GetPlayroomToken());
4444
text.text = _kit.GetPlayroomToken();
4545
}
46+
47+
if (Input.GetKeyDown(KeyCode.I))
48+
{
49+
_kit.OpenDiscordInviteDialog(()=>
50+
{
51+
text.text = "Discord invite dialog opened!";
52+
});
53+
}
4654
}
4755
}

0 commit comments

Comments
 (0)