Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
using CavrnusSdk.API;
using UnityEngine;

public class AuthenticateAsGuestAwaitAuthentication : MonoBehaviour
{
    public GameObject SpacesMenuPrefab;

    private void Start()
    {
        CavrnusFunctionLibrary.AwaitAuthentication(auth => OnAuth(auth));
    }

    private void OnAuth(CavrnusAuthentication auth)
    {
        //Instantiate the Spaces Menu now that we are logged in
        GameObject.Instantiate(SpacesMenuPrefab);
    }
}