Exemplo n.º 1
0
 public void Stop()
 {
     Trail.DOResize(0, 0, 5f)
     .OnUpdate(() => {
         Sprite.transform.localScale = Vector3.one * Trail.startWidth;
     })
     .OnComplete(() => {
         OnColorBallHit.Invoke();
         Destroy(gameObject);
     });
 }