Beispiel #1
0
 private IEnumerator Shrink()
 {
     t = 0;
     while (t < 1f)
     {
         t += Time.deltaTime * 3f;
         e  = Ease.EaseOutExpo(t);
         transform.localScale = Vector3.Lerp(Vector3.one, Vector3.zero, e);
         yield return(null);
     }
     transform.localScale = Vector3.zero;
 }