Exemplo n.º 1
0
 IEnumerator Shooting()
 {
     _curve = new GravitationalCurve(transform.position, destination.position, duration, Physics.gravity);
     foreach (var p in _curve.Go()) {
         bullet.position = p;
         yield return null;
     }
     _curve = null;
 }
Exemplo n.º 2
0
 IEnumerator Shooting()
 {
     _curve = new GravitationalCurve(transform.position, destination.position, duration, Physics.gravity);
     foreach (var p in _curve.Go())
     {
         bullet.position = p;
         yield return(null);
     }
     _curve = null;
 }