Beispiel #1
0
 public TankProjectileDamageData(float damage, RaycastHit2D hit, TankProjectile projectile, TankProjectileInstance instance, Vector2 force = default(Vector2)) : base(damage, hit.normal, hit.point, hit.collider)
 {
     this.raycastHit         = hit;
     this.projectile         = projectile;
     this.projectileInstance = instance;
     this.force = force;
 }
Beispiel #2
0
 private static IEnumerator UpdateProjectileEnumerator(TankProjectile projectile)
 {
     while (true)
     {
         projectile.UpdateProjectile(Time.deltaTime);
         yield return(new WaitForEndOfFrame());
     }
 }