Compare commits

..

No commits in common. "f1a50a1768bbac5ef5ef6add2daf9a4a04444145" and "fff24c72a4dd631972cb10b5ddb14ef15ae46e73" have entirely different histories.

3 changed files with 9 additions and 9 deletions

View File

@ -3485,7 +3485,7 @@ MonoBehaviour:
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 0
m_Interactable: 1
m_TargetGraphic: {fileID: 1158329300}
m_OnClick:
m_PersistentCalls:

View File

@ -1,6 +1,5 @@
using Firebase;
using Firebase.Auth;
using Firebase.Extensions;
using System;
using UnityEngine;
using UnityEngine.Android;
@ -20,7 +19,7 @@ void Start()
{
AskForCameraAuthorizationForAndroid();
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
{
var dependencyStatus = task.Result;
if (dependencyStatus == DependencyStatus.Available)
@ -44,7 +43,7 @@ void Authenticate()
{
FirebaseAuth auth = FirebaseAuth.DefaultInstance;
auth.SignInAnonymouslyAsync().ContinueWithOnMainThread(task =>
auth.SignInAnonymouslyAsync().ContinueWith(task =>
{
if (task.IsCanceled)
{

View File

@ -1,13 +1,13 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using Firebase.Database;
using Firebase.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using TMPro;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// This is the game state manager on the phone side
@ -26,7 +26,7 @@ public class GameManager : MonoBehaviour
public TextMeshProUGUI roomError;
public TMP_InputField playerNameField;
public TextMeshProUGUI nameError;
public Button submitNewPlayer;
public UnityEngine.UI.Button submitNewPlayer;
[Header("WaitingRoom Component")]
public TextMeshProUGUI listPlayersUI;
@ -54,7 +54,6 @@ public class GameManager : MonoBehaviour
private void Awake()
{
submitNewPlayer.interactable = false;
FirebaseInitializer.Instance.onFirebaseReady += Initialize;
}
@ -72,6 +71,7 @@ private void Start()
if (PlayerPrefs.HasKey("lastplayername"))
playerNameField.text = PlayerPrefs.GetString("lastplayername");
submitNewPlayer.interactable = false;
}
private void OnApplicationQuit()
@ -135,8 +135,9 @@ private void Initialize()
{
FirebaseInitializer.Instance.onFirebaseReady -= Initialize;
realtimeDB = FirebaseDatabase.DefaultInstance.RootReference;
submitNewPlayer.interactable = true;
Debug.Log("Realtime DB initialized");
submitNewPlayer.interactable = true;
}
/// <summary>