Example #1
0
 private static void HandleDatabaseConnection(object sender, ValueChangedEventArgs args)
 {
     if (args.DatabaseError != null)
     {
         Debug.LogError(args.DatabaseError.Message);
         return;
     }
     RPCBoolObserver.Notify((bool)args.Snapshot.Value);
 }
Example #2
0
 void Start()
 {
     RPCBoolObserver.AddObserver(this);
 }
Example #3
0
 public void ReceiveDBConnection(bool isConnectedDB)
 {
     RPCBoolObserver.Notify(isConnectedDB);
 }
 void Start()
 {
     RPCBoolObserver.AddObserver(this);
     connectionIndicator.enabled = false;
 }