|
|
|
|
|
|
using Unity.Services.Authentication; |
|
|
|
using Unity.Services.Core; |
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
using UnityEngine; |
|
|
|
using ParrelSync; |
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace LobbyRelaySample.Auth |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
|
|
|
await UnityServices.InitializeAsync(); |
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
if (ClonesManager.IsClone()) |
|
|
|
if (ParrelSync.ClonesManager.IsClone()) |
|
|
|
string customArgument = ClonesManager.GetArgument(); |
|
|
|
string customArgument = ParrelSync.ClonesManager.GetArgument(); |
|
|
|
AuthenticationService.Instance.SwitchProfile($"Clone_{customArgument}_Profile"); |
|
|
|
} |
|
|
|
#endif
|
|
|
|