Esempio n. 1
0
    public void MainMenuButtonClick()
    {
        // Reset the game and start over
        GameManagerScript.gameManager.Reset();

        AudioManager.instance.Play("Sparkle1");

        // Change scenes back to main menu
        _menu = gameObject.GetComponent <ConsentMenuScript>();

        _menu.GoToNextScene(0);
    }
    // Use this for initialization
    void Start()
    {
        // Turn off the instructions panel in the next scene
        GameManagerScript.displayInstructions = false;

        _menu = gameObject.GetComponent <ConsentMenuScript>();

        // Log the start of the Tutorial
        MetaLogEntry entry = new MetaLogEntry();

        entry.SetValues("BNW_TutorialOpened", "BNW_Meta", new MetaLogEntry.MetaPayload("tutorial"));
        string            json      = JsonUtility.ToJson(entry);
        DatabaseReference reference = FirebaseDatabase.DefaultInstance.GetReference(GameManagerScript.LOGGING_VERSION);

        reference.Push().SetRawJsonValueAsync(json);

        //Debug.Log("logging tutorial");
    }