Ejemplo n.º 1
0
    private void Start()
    {
        firebaseApp = FirebaseDatabase.DefaultInstance.App;
        FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(ServerData.Data._FirebaseUrl);
        databaseReference = FirebaseDatabase.DefaultInstance.RootReference;
        FirebaseApp.DefaultInstance.SetEditorP12FileName(ServerData.Data._FirebaseFileName);
        FirebaseApp.DefaultInstance.SetEditorP12Password(ServerData.Data._FirebasePassword);

        _CanMatching = false;

        auth = FirebaseAuth.DefaultInstance;
        UserLoginCheck();
        if (auth.CurrentUser != null)
        {
            _SceneMng.OpenLobbyScene();
        }
        else
        {
            _SceneMng.OpenLoginScene();
        }

        //databaseReference.Child("records").SetValueAsync(null);



        //if (auth.CurrentUser != null)
        //    UpdateRecordBlocks();
    }