General Settings
To prevent the misuse of accounts, the application continuously checks for account duplication. Developers must directly manage any subsequent actions, such as account logout, that arise from account duplication events.
Call Information
AccountCheckDuplicate(PlayNANOODelegate callback) {}
Call Details
Parameter | Description | Type |
---|---|---|
callback | Result | Delegate |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Start()
{
plugin = Plugin.GetInstance();
}
void Update()
{
plugin.AccountCheckDuplicate(OnCheckAccountDuplicate);
}
void OnCheckAccountDuplicate(bool isDuplicate)
{
if (isDuplicate)
{
Debug.LogError("Duplicate connection has been detected.");
}
}
}