Example #1
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
 }
Example #2
0
 public static void RemoveUser(UserModel user, Delegates.GeneralListenerSuccess success, Delegates.GeneralListenerFail fail)
 {
     FirebaseAPIHelper.GetFireBaseAPIHelperInstance().RemoveUser(user.userID, delegate() {
         FireBaseManager.GetFireBaseInstance().RemoveUser(user.userID, user.userType, delegate() {
             GetAllResponsablesFromCompanyAsUser();
             success();
         });
     }, fail);
 }
Example #3
0
 void CreateUserLogin()
 {
     Loading = true;
     FirebaseAPIHelper.GetFireBaseAPIHelperInstance().AddUser(email.text, password.text, delegate(string userID) {
         CreateNewResponsibleToCompany(userID);
     }, delegate(string error) {
         Error = true;
     });
 }