private void OnSignUpExecute() { if (Validate()) { OnSignUp?.Invoke(Email, PasswordBoxContext.GetPassword(), UserName); } }
public void OnSignUpAnswer(ProtobufPacket <SignUpAnswerPacket> packet) { SignUpAnswerPacket answer = packet.ProtobufMessage; Debug.Log(answer.Success ? "회원가입 성공" : "회원가입 실패"); Debug.Log(answer.Context); OnSignUp?.Invoke(this, new Tuple <string, bool>(answer.Context, answer.Success)); }
protected override void Start() { base.Start(); _btnAlreadyAccount.onClick.AddListener(() => { OnAlreadyAccount?.Invoke(); }); _btnSignUp.onClick.AddListener(() => { OnSignUp?.Invoke(); }); }