Beispiel #1
0
    public void CompleteGoogleColorsRiddle()
    {
        var childUpdates = new Dictionary <string, object>();

        QuestProgress.isGoogleColorsCompleted = true;
        //Refresh the info panel
        _questUi.OnChangeInfoButtonClicked();

        childUpdates[QuestFolderName + "/" + firebaseData.auth.CurrentUser.DisplayName + "/isGoogleColorsCompleted"] = true;

        firebaseData.database.UpdateChildrenAsync(childUpdates).ContinueWith(task1 =>
        {
            if (task1.IsCompleted)
            {
            }
            else if (task1.IsFaulted)
            {
                Debug.LogError("QuestManager: Failed to update quest data in firebase realtime database!");
                Debug.LogError("Error message: " + task1.Exception.Message);
            }
            else if (task1.IsCanceled)
            {
                Debug.LogError("QuestManager: Cancel updating quest data in firebase realtime database!");
            }
        });
    }