private void Awake() { popUpBtn = popUp.GetComponentInChildren <Button>(); popUpBtn.onClick.AddListener(() => popUp.SetActive(false)); textField = GetComponentInChildren <TMP_InputField>(); submitBtn = GetComponentInChildren <Button>(); submitBtn.onClick.AddListener(() => OnLoginSubmit.Invoke(textField.text)); }
private void OnLoginSubmitCallBack() { OnLoginSubmit.InvokeAsync(true); }