Exemple #1
0
            public void DoCommand()
            {
                switch (command)
                {
                case FirebaseCommand.Get:
                    firebase.GetValue(param);
                    break;

                case FirebaseCommand.Set:
                    firebase.SetValue(obj, param);
                    break;

                case FirebaseCommand.Update:
                    firebase.UpdateValue(obj, param);
                    break;

                case FirebaseCommand.Push:
                    firebase.Push(obj, param);
                    break;

                case FirebaseCommand.Delete:
                    firebase.Delete(param);
                    break;
                }
            }
 IEnumerator RefreshCoroutine()
 {
     while (active)
     {
         target.GetValue();
         yield return(new WaitForSeconds(refreshRate));
     }
 }