IEnumerator DisableHitmarker(HitmarkerType a_type) { yield return(new WaitForSeconds(hitmarkerDurationActive)); if (a_type == HitmarkerType.regular) { hitmarkerWhite.SetActive(false); } else { hitmarkerRed.SetActive(false); } }
public void ActivateHitmarker(HitmarkerType a_type) { if (a_type == HitmarkerType.regular) { hitmarkerWhite.SetActive(true); } else { hitmarkerRed.SetActive(true); } StartCoroutine(DisableHitmarker(a_type)); }