public void InvokeRegisterBtn() { if (CheckAllInputfieldsAreFilled() && CheckPasswordIsValid()) { _dataBridge = DataBridge.GetInstance(); _dataBridge.CreatePlayerWithEmailAndPassword(email_inputfield.text, password_inputfield.text); _dataBridge.WritePlayer(email_inputfield.text, company_inputfield.text); ClearInputfield(); } }