Skip to content

Commit

Permalink
RPGを同時打ちに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
TORISOUP committed Mar 26, 2016
1 parent 90e86b4 commit dad6fd0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Inferno/InfernoScripts/Player/BondCar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class BondCar : InfernoScript

protected override void Setup()
{
var isRight = true;

OnTickAsObservable
.Where(_ =>
Expand All @@ -31,9 +30,8 @@ protected override void Setup()
//そこら辺の市民のせいにする
var ped = CachedPeds.Where(x => x.IsSafeExist()).DefaultIfEmpty(PlayerPed).FirstOrDefault();
StartCoroutine(InvincibleVehicle(v, 2));
CreateRpgBullet(v, ped, isRight ? 1.5f : -1.5f);
//左右交互に
isRight = !isRight;
CreateRpgBullet(v, ped, 1.5f);
CreateRpgBullet(v, ped, -1.5f);
v.EngineHealth *= 0.9f;
});
}
Expand Down

0 comments on commit dad6fd0

Please sign in to comment.