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; }
private static IEnumerator UpdateProjectileEnumerator(TankProjectile projectile) { while (true) { projectile.UpdateProjectile(Time.deltaTime); yield return(new WaitForEndOfFrame()); } }