Esempio n. 1
0
    void Internal_ValidateGauge(OnGaugeEnd onGaugeEnd)
    {
        if (gaugeLoad != null)
        {
            return;
        }

        gaugeLoad = StartCoroutine(Coroutine_GaugeLoad(onGaugeEnd));
    }
Esempio n. 2
0
    IEnumerator Coroutine_GaugeLoad(OnGaugeEnd onGaugeEnd)
    {
        gaugeAnimator.gameObject.SetActive(true);

        yield return(new WaitForSeconds(1));

        gaugeAnimator.gameObject.SetActive(false);

        onGaugeEnd();
    }
Esempio n. 3
0
 public static void ValidateGauge(OnGaugeEnd onGaugeEnd)
 {
     if (Direction.magnitude < StillnessThreshold)
     {
         Instance.Internal_ValidateGauge(onGaugeEnd);
     }
     else
     {
         HideGauge();
     }
 }