Weapon#resetShots()

resetShots(newLimit) → {Phaser.Weapon}

Resets the Weapon.shots counter back to zero. This is used when you've set
Weapon.fireLimit, and have hit (or just wish to reset) your limit.

Parameters
Name Type Argument Description
newLimit integer <optional>

Optionally set a new Weapon.fireLimit.

Returns

This Weapon instance.

Source code: plugins/weapon/WeaponPlugin.js (Line 558)
doc_phaser
2017-02-14 11:19:56
Comments
Leave a Comment

Please login to continue.