Description
using UnityEngine;
using Volplane;
public class Demo : VolplaneBehaviour
{
void OnUserDataSaved(int playerId)
{
Debug.LogFormat("Successfully synced data from player {0:D}.", playerId);
}
}
You can only use one of those methods inside a VolplaneBehaviour instace.
using UnityEngine;
using Volplane;
public class Demo : VolplaneBehaviour
{
void OnUserDataSaved(VPlayer player)
{
Debug.LogFormat("Successfully synced data from {0:G}.", player.Nickname);
}
}
Gets called when a players user data have been saved on the AirConsole servers after invoking VolplaneBehaviour.SaveUserData() or VPlayer.SaveUserData().
playerId | The player identifier. |
player | The player object. |