public void IncreaseCounter(int _amount) { if (counterEnd) { return; } for (int i = 0; i < _amount; i++) { currentActivatedIndex += 1; if (currentActivatedIndex >= counterList.Count) { return; } SetCounterToGreen(counterList[currentActivatedIndex]); if (currentActivatedIndex >= counterList.Count - 1) { currentActivatedIndex = 0; SetCounterToGreen(counterList[currentActivatedIndex]); } if (isWaveCounter) { FeedbackManager.SendFeedback("event.WaveCounterIncreasing", this); } if (currentActivatedIndex == 0) { FeedbackManager.SendFeedback("event.WaveCounterFinished", this); SetCounterToGreen(counterList[0]); counterEnd = true; } } }
void InitializeHockeyApp(string hockeyAppID) { CrashManager.Register(this, hockeyAppID); UpdateManager.Register(this, hockeyAppID, true); FeedbackManager.Register(this, hockeyAppID, null); MetricsManager.Register(Application); }
public virtual void Heal(int _amount) { float i_newHealth = currentHealth + _amount; currentHealth = Mathf.Clamp(i_newHealth, 0, GetMaxHealth()); FeedbackManager.SendFeedback(eventOnHealing, this); }
public frmFeedback(FeedbackManager fmanager) { enteredFeedback = new Feedback(); InitializeComponent(); feedbackManager = fmanager; InitializeCarriersComboBox(); }
private void Start() { _wallet = Wallet.Instance; _currency = CurrencyClicker.Instance; _exchangeRate = ExchangeRate.Instance; _feedbackManager = FeedbackManager.Instance; }
} //Indicate that the player can now revive someone public void Revive(PlayerController _player) { Analytics.CustomEvent("PlayerRevive", new Dictionary <string, object> { { "Zone", GameManager.GetCurrentZoneName() }, }); FeedbackManager.SendFeedback(eventOnResurrecting, this); moveState = MoveState.Idle; _player.moveState = MoveState.Idle; _player.animator.SetTrigger("Revive"); _player.SetTargetable(); _player.UnHide(); _player.currentHealth = GetMaxHealth(); _player.transform.position = transform.position + Vector3.up * 7 + Vector3.left * 0.1f; _player.FreezeTemporarly(reviveFreezeDuration); _player.EnableInput(); StartCoroutine(DisableInputsTemporarly_C(reviveFreezeDuration * 2)); FreezeTemporarly(reviveFreezeDuration); SetTargetable(); List <ReviveInformations> i_newRevivablePlayers = new List <ReviveInformations>(); StartCoroutine(ProjectEnemiesInRadiusAfterDelay_C(0.4f, reviveExplosionRadius, reviveExplosionDamage, DamageSource.ReviveExplosion)); foreach (ReviveInformations inf in revivablePlayers) { if (inf.linkedPlayer != _player) { i_newRevivablePlayers.Add(inf); } } revivablePlayers = i_newRevivablePlayers; GameManager.deadPlayers.Remove(_player); GameManager.alivePlayers.Add(_player); canBeKilled = true; }
private void frmMain_Load(object sender, EventArgs e) { try { feedbackManager = new FeedbackManager(); LoadCarriers(); } catch (Exception ex) { HandleCriticalException(ex); return; } if (feedbackManager.GetNumberOfFeedbacks() > 0) { ShowFirstFeedback(); } else { ToggleControls(false); } cboSort.DataSource = sortTypesList; radBtnAscending.Checked = true; }
protected void OnCreate(Bundle bundle , int idLayout , bool leftMenuExist = true , bool isBackButton = false) { base.OnCreate(bundle); _leftMenuExist = leftMenuExist; SetContentView(idLayout); _connectionService.Initialize(this, ConnectivityService); if (_leftMenuExist) // create menu { GetObjectsFromView(); SetDataToView(); } if (ToolbarPage != null) // create toolbar { SetSupportActionBar(ToolbarPage); if (isBackButton) { SupportActionBar.SetDisplayHomeAsUpEnabled(true); } } FeedbackManager.Register(this); //!important cf https://support.hockeyapp.net/discussions/problems/63855-feedback-feature-not-working-hockey-android-sdk // Allow users to connect to your app with Facebook // can crash if commented //FacebookSdk.SdkInitialize(ApplicationContext); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); // 註冊程式異常崩壞的回報機制 CrashManager.Register(this, HocKeyApp_ID); // 檢查是否有新版本推出,讓使用者可以選擇是否要升級 CheckForUpdates(); // 訊息中心訂閱者,當使用者在核心PCL內按下按鈕之後,訊息中心將會收到這個訊息通知,並且進行處理 MessagingCenter.Subscribe <我要回報>(this, "是的,請說", (sender) => { #region 讓使用者填寫意見,並記錄到 HocKeyApp FeedbackManager.Register(this, HocKeyApp_ID); FeedbackManager.ShowFeedbackActivity(ApplicationContext); #endregion }); }
public void OnHit(BallBehaviour _ball, Vector3 _impactVector, PawnController _thrower, float _damages, DamageSource _source, Vector3 _bumpModificators = default) { if (destroyed) { return; } FeedbackManager.SendFeedback("event.BossLegHit", this); legAnimator.StartCoroutine(legAnimator.BumpLeg_C()); if (_source == DamageSource.PerfectReceptionExplosion) { _damages = _damages * perfectReceptionDamageMultiplier; } if (destroyable) { currentHP -= _damages; currentHP = Mathf.Clamp(currentHP, 0f, maxHP); if (currentHP <= 0) { Dismantle(); } } else { boss.Damage(_damages); } }
public void GoToSettings() { FeedbackManager.SendFeedback("event.PressSettings", this); optionMenuCanvas.enabled = true; optionMenu.GetComponent <SettingsMenu>().CheckListWhenLaunchingSettings(); isMainMenuActive = false; }
void SelectPreviousButton() { FeedbackManager.SendFeedback("event.MenuUpAndDown", this); selectedButtonIndex--; selectedButtonIndex = Mathf.Clamp(selectedButtonIndex, 0, buttons.Count - 1); SelectButton(buttons[selectedButtonIndex]); }
public virtual void ActivatedAction() { DesactiveLinkedObjects(); isActivated = false; UpdateLight(); FeedbackManager.SendFeedback("event.PuzzleRepeaterActivation", this); }
public void ActivateHammerAttackHitBox() { if (bossState == BossState.HammerPunchAttack) { FeedbackManager.SendFeedback("event.BossPunchAttack", this); } HammerAttack_attackHitBoxInstance = Instantiate(HammerAttack_attackHitBoxPrefab, transform.position + PunchAttack_hitBoxOffset.x * transform.right + PunchAttack_hitBoxOffset.y * transform.up + PunchAttack_hitBoxOffset.z * transform.forward, transform.rotation, transform); }
public void DestroyTheObject() { Analytics.CustomEvent("ObjectDestroyed", new Dictionary <string, object> { { "Zone", GameManager.GetCurrentZoneName() }, }); FeedbackManager.SendFeedback(deathEvent, this, transform.position, transform.up, transform.up); Destroy(gameObject); }
public void CloseLevelSelector() { FeedbackManager.SendFeedback("event.PressExit", this); sceneList.gameObject.SetActive(false); buttons = menuButtons; SelectButton(buttons[0]); Time.timeScale = 1; }
public void ActivateAttackHitBox() { FeedbackManager.SendFeedback("event.EnemyMeleeAttack", this); if (attackHitBoxInstance != null) { attackHitBoxInstance.GetComponent <EnemyArmAttack>().ToggleArmCollider(true); } }
public static FeedbackManager GetInstance() { if (instance == null) { instance = new FeedbackManager(); } return(instance); }
public void OnArenaEnter() { if (closeOnArenaStart) { animator.SetBool("Opened", false); FeedbackManager.SendFeedback("event.ArenaDoorClosing", this); } }
IEnumerator OpenAfterDelay_C() { yield return(new WaitForSeconds(delayBeforeOpening)); animator.SetBool("Opened", true); linkedCollider.isTrigger = true; FeedbackManager.SendFeedback("event.ArenaDoorOpening", this); }
private IEnumerator ExplosionSequence_C(bool _isSafeExplosion) { Debug.Log("Starting explosion sequence"); animator.SetTrigger("DeathTrigger"); if (_isSafeExplosion) { FeedbackManager.SendFeedback(buildUpSafeExplosionFX, this); } else { FeedbackManager.SendFeedback(buildUpExplosionFX, this); } willExplode = true; //hitParticle.transform.localScale = 3f; explosionRadiusTransform.gameObject.SetActive(true); float i_time = 0; while (i_time < 1 && willExplode) { explosionGrowingRenderer.localScale = Vector3.Lerp(Vector3.zero, Vector3.one, i_time); i_time += Time.deltaTime / buildUpBeforeExplosion; //Color flicker on death if (Random.Range(0f, 1f) > 0.5f) { bodyRenderer.material.SetColor("_EmissionColor", emissionColor * minMaxEmissionOnDeath.x); } else { bodyRenderer.material.SetColor("_EmissionColor", emissionColor * minMaxEmissionOnDeath.y); } yield return(null); } if (!willExplode) { explosionRadiusTransform.gameObject.SetActive(false); explosionGrowingRenderer.localScale = Vector3.zero; Explosion_C = null; yield break; } else { if (_isSafeExplosion) { SafeExplode(); } else { Explode(); } Kill(); } }
public void Init() { #if !DEBUG CrashManager.Register(_context, Secrets.AndroidHockeyId, new HockeyListener()); MetricsManager.Register(_app, Secrets.AndroidHockeyId); MetricsManager.EnableUserMetrics(); FeedbackManager.Register(_app, Secrets.AndroidHockeyId); #endif }
/// <summary> /// Buttons feedback click. /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> protected void btnFeedback_Click(object sender, EventArgs e) { FeedbackManager fm = new FeedbackManager(); fm.addFeedback(Session["Username"].ToString(), tbFeedbackMessage.Text); pnlFeedback.Visible = false; lblFeedbackMessage.Visible = true; lblFeedbackMessage.Text = "Feedback Sent!"; }
public void HearShake() { FeedbackManager.RequireUserEmail = FeedbackUserDataElement.Required; FeedbackManager.RequireUserName = FeedbackUserDataElement.Required; FeedbackManager.SetActivityForScreenshot(this); FeedbackManager.TakeScreenshot(this); FeedbackManager.ShowFeedbackActivity(this); }
public ActionResult ProductDetails(PublicViewModel pv) { if (!ModelState.IsValid) { pv.ProductGalleries = ProductManager.GetAllProductGalleriesByProductId(pv.Product.Id); return(View(pv)); } if (Session["CompanySetting"] != null) { pv.CompanySetting = (CompanySetting)Session["CompanySetting"]; } else { pv.CompanySetting = CompanySettingsManager.GetCompanySettings(1); } FeedbackManager.InsertFeedback(pv.Feedback); try { string path = System.Web.HttpContext.Current.Server.MapPath("~/Mail/mz-email.html"); string html = System.IO.File.ReadAllText(path); html = html.Replace("{name}", pv.Feedback.Name); html = html.Replace("{mobile}", pv.Feedback.Mobile); html = html.Replace("{message}", pv.Feedback.Message); html = html.Replace("{p_name}", pv.Product.ProductName); html = html.Replace("{p_price}", pv.Product.Price.ToString()); html = html.Replace("{p_link}", Request.Url?.AbsoluteUri); html = html.Replace("{date}", DateTime.Now.ToString("dd MMM yyyy")); bool hasWords = HasBadWords(pv.Feedback.Message); if (hasWords == false) { SendEmailFromGoDaddy("MazedaMart contact us inquiry", html); } StringBuilder sb = new StringBuilder(); sb.AppendFormat("<div class=\"alert alert-success\" id=\"contactSuccess\">"); sb.AppendFormat("<strong>Success!</strong> Your message has been sent to us."); sb.AppendFormat("</div>"); //pv.EmailStatus = sb.ToString(); Session["EmailStatus"] = sb.ToString(); } catch (Exception ex) { StringBuilder sb = new StringBuilder(); sb.AppendFormat("<div class=\"alert alert-success\" id=\"contactSuccess\">"); sb.AppendFormat(" <strong>Error!</strong> There was an error sending your message.{0} - {1}", ex.Message, ex.InnerException?.Message); sb.AppendFormat("<span class=\"font-size-xs mt-sm display-block\" id=\"mailErrorMessage\"></span>"); sb.AppendFormat("</div>"); //pv.EmailStatus = sb.ToString(); Session["EmailStatus"] = sb.ToString(); } return(Redirect("/Home/ProductDetails/" + pv.Product.Id)); }
IEnumerator Dash_C(Vector3 _startPosition, Vector3 _endPosition) { currentUseCooldown = useCooldown; currentStackAmount--; currentDashFX = FeedbackManager.SendFeedback("event.Dash", this).GetVFX(); Vector3 i_dashDirection = _endPosition - _startPosition; ChangeState(DashState.Dashing); float i_cloneCounter = 0; for (float i = 0; i <= duration; i += Time.deltaTime) { i_cloneCounter += Time.deltaTime; if (i_cloneCounter >= 1f / clonePerSec) { GenerateClone(); i_cloneCounter = 0; } RaycastHit[] hits = Physics.SphereCastAll(linkedPawn.GetCenterPosition(), dashHitboxSize, i_dashDirection.normalized, 0.4f); foreach (RaycastHit hit in hits) { PlayerController hitPawn = hit.collider.transform.gameObject.GetComponent <PlayerController>(); if (hitPawn) { if (hitPawn != linkedPawn) { DashController dashController = hitPawn.GetComponent <DashController>(); if (dashController != null) { dashController.StopAllCoroutines(); dashController.ChangeState(DashState.None); linkedPawn.Push(PushType.Light, -i_dashDirection, PushForce.Force2); } hitPawn.Push(PushType.Light, i_dashDirection, PushForce.Force2); if (!unstoppableDash) { ChangeState(DashState.None); StopAllCoroutines(); } } } if (hit.transform.gameObject.layer == LayerMask.NameToLayer("Environment")) { StartCoroutine(StopDash_C()); } } transform.position = Vector3.Lerp(_startPosition, _endPosition, dashSpeedCurve.Evaluate(i / duration)); yield return(null); } transform.position = _endPosition; GenerateClone(); ChangeState(DashState.None); StartCoroutine(FadePlayerSpeed()); yield return(null); }
public ActionResult Feedback1(FeedBackDto fd) { fd.UserID = 2; fd.EventID = 6; FeedbackManager fm = new FeedbackManager(); fm.UpdateFeedback(fd); return(Content("Feedback Submitted ")); }
public JournalManager(bool allowAnonymousErrorFeedback) { JournalFolderPath = GetJournalFolderPath(); _proceedReadingJournalEvent = new ManualResetEventSlim(); _proceedToNextJournalEvent = new ManualResetEventSlim(); _isLiveEvent = new ManualResetEventSlim(); FeedbackManager.Initialize(allowAnonymousErrorFeedback); }
void Awake() { if (instance != null) { GameObject.Destroy(gameObject); return; } instance = this; }
void SelectPreviousSettings() { FeedbackManager.SendFeedback("event.MenuUpAndDown", this); if (selectedSettingIndex - 1 >= 0) { selectedSettingIndex--; selectedSetting = settingsParentScript.SelectSetting(selectedSettingIndex); SetDescriptionTexts(selectedSetting); } }
void Start() { Instance = this; feedback_email = "*****@*****.**"; feedback_password = "******"; client = new SmtpClient(); client.Host = "smtp.gmail.com"; client.Port = 587; client.EnableSsl = true; client.DeliveryMethod = SmtpDeliveryMethod.Network; client.UseDefaultCredentials = false; client.Credentials = (ICredentialsByHost)new NetworkCredential(feedback_email, feedback_password); client.Timeout = 5000; client.SendCompleted += OnMessageSent; }
public void Start() { FeedbackManager.instance = this; }