void Internal_ValidateGauge(OnGaugeEnd onGaugeEnd) { if (gaugeLoad != null) { return; } gaugeLoad = StartCoroutine(Coroutine_GaugeLoad(onGaugeEnd)); }
IEnumerator Coroutine_GaugeLoad(OnGaugeEnd onGaugeEnd) { gaugeAnimator.gameObject.SetActive(true); yield return(new WaitForSeconds(1)); gaugeAnimator.gameObject.SetActive(false); onGaugeEnd(); }
public static void ValidateGauge(OnGaugeEnd onGaugeEnd) { if (Direction.magnitude < StillnessThreshold) { Instance.Internal_ValidateGauge(onGaugeEnd); } else { HideGauge(); } }