Skip to content

Instantly share code, notes, and snippets.

@beamable-gists
Created May 24, 2022 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beamable-gists/c541eee7c86ef971f6ebdda30ff86589 to your computer and use it in GitHub Desktop.
Save beamable-gists/c541eee7c86ef971f6ebdda30ff86589 to your computer and use it in GitHub Desktop.
Example of basic API initialization with Beamable.
using Beamable;
public class SilentLogin
{
private BeamContext _beamContext;
private async void Start()
{
_beamContext = BeamContext.Default;
await _beamContext.OnReady;
Debug.Log($"beamContext.PlayerId = {_beamContext.PlayerId}");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment