Changeset 5435
- Timestamp:
- 2014-07-04 12:04:57 (9 years ago)
- Location:
- 2014/27/PekkaR/D2x_2d
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
2014/27/PekkaR/D2x_2d/D2x_2d/D2x_2d/D2x_2d.cs
r5432 r5435 339 339 Timer ajastin = new Timer(); 340 340 ajastin.Interval = 0.6; 341 ajastin.Timeout += delegate { if (!(pelaaja.IsDestroyed || reaktori.IsDestroyed) && RandomGen.NextBool()) Add(reaktori.Ammu(pelaaja));};341 ajastin.Timeout += delegate { if (!(pelaaja.IsDestroyed || reaktori.IsDestroyed) && RandomGen.NextBool()) { Ammus am = reaktori.Ammu(pelaaja); am.Color = Color.Red; Add(am); } }; 342 342 ajastin.Start(); 343 343 Add(reaktori);
Note: See TracChangeset
for help on using the changeset viewer.