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
#region AccelByte MatchMaking Functions | |
/// <summary> | |
/// Find match function by calling lobby matchmaking | |
/// Get latencies from available game server regions from Quality of Service | |
/// Latencies can be used for matchmaking to determine which region has the lowest latency | |
/// </summary> | |
private void FindMatch() | |
{ | |
if (connectToLocal) | |
{ |
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
public void Start() | |
{ | |
if (useSteam) | |
{ | |
#if UNITY_STANDALONE && !DISABLESTEAMWORKS | |
isUsingOtherPlatform = true; | |
loginType = E_LoginType.Steam; | |
UIHandlerAuthComponent.loginPanel.gameObject.SetActive(false); | |
Debug.Log("Valid ABUSER:"+abUser.Session.IsValid()); | |
Debug.Log("Valid Steam Auth:" + steamAuth.isActiveAndEnabled); |
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
#region AccelByte Chat Functions | |
public void SendChatMessage() | |
{ | |
if (string.IsNullOrEmpty(UIHandlerLobbyComponent.messageInputField.text)) | |
WriteWarningInChatBox("Please enter write your message"); | |
else if (string.IsNullOrEmpty(activePlayerChatUserId)) | |
WriteWarningInChatBox("Please select player or party to chat"); | |
else if (!UIHandlerLobbyComponent.partyChatButton.interactable) | |
SendPartyChat(); | |
else |
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
public class AccelByteLeaderboardLogic : MonoBehaviour | |
{ | |
private GameObject UIHandler; | |
private UILeaderboardComponent UIHandlerLeaderboardComponent; | |
private UIElementHandler UIElementHandler; | |
private Leaderboard abLeaderboard; | |
private IDictionary<string, RankData> playerRankList; | |
private string lastPlayerRank; |
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
{ | |
"PublisherNamespace": "accelbyte", | |
"Namespace": "lightfantastic", | |
"BaseUrl": "https://sampleaddress.io", | |
"DSMServerUrl": "https://sampleaddress.io/dsm", | |
"IamServerUrl": "https://sampleaddress.io/iam", | |
"ClientId": "clientid", | |
"ClientSecret": "clientsecret", | |
"RedirectUri": "redirecturi" | |
} |
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
{ | |
"PublisherNamespace": "accelbyte", | |
"Namespace": "lightfantastic", | |
"UseSessionManagement": true, | |
"BaseUrl": "https://sampleaddress.io", | |
"LoginServerUrl": "https://sampleaddress.io", | |
"IamServerUrl": "https://sampleaddress.io/iam", | |
"PlatformServerUrl": "https://sampleaddress.io/platform", | |
"BasicServerUrl": "https://sampleaddress.io/basic", | |
"LobbyServerUrl": "wss://sampleaddress.io/lobby/", |
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
private const string AUTHORIZATION_CODE_ENVIRONMENT_VARIABLE = "JUSTICE_AUTHORIZATION_CODE"; | |
//Attempts to login with launcher | |
public void LoginWithLauncher() | |
{ | |
// Check if auth code is available from launcher | |
string authCode = Environment.GetEnvironmentVariable(AUTHORIZATION_CODE_ENVIRONMENT_VARIABLE); | |
if (authCode != null) | |
{ |