コード例 #1
0
ファイル: DamageData.cs プロジェクト: Ehwhat/BetaArcadeGame
 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;
 }
コード例 #2
0
 private static IEnumerator UpdateProjectileEnumerator(TankProjectile projectile)
 {
     while (true)
     {
         projectile.UpdateProjectile(Time.deltaTime);
         yield return(new WaitForEndOfFrame());
     }
 }