mirror of
https://github.com/wassname/phaser.git
synced 2026-07-24 13:10:53 +08:00
Preparing to merge new examples.
This commit is contained in:
+10
-2
@@ -807,7 +807,7 @@ Phaser.Group.prototype = {
|
||||
*/
|
||||
countLiving: function () {
|
||||
|
||||
var total = -1;
|
||||
var total = 0;
|
||||
|
||||
if (this._container.children.length > 0 && this._container.first._iNext)
|
||||
{
|
||||
@@ -824,6 +824,10 @@ Phaser.Group.prototype = {
|
||||
}
|
||||
while (currentNode != this._container.last._iNext);
|
||||
}
|
||||
else
|
||||
{
|
||||
total = -1;
|
||||
}
|
||||
|
||||
return total;
|
||||
|
||||
@@ -837,7 +841,7 @@ Phaser.Group.prototype = {
|
||||
*/
|
||||
countDead: function () {
|
||||
|
||||
var total = -1;
|
||||
var total = 0;
|
||||
|
||||
if (this._container.children.length > 0 && this._container.first._iNext)
|
||||
{
|
||||
@@ -854,6 +858,10 @@ Phaser.Group.prototype = {
|
||||
}
|
||||
while (currentNode != this._container.last._iNext);
|
||||
}
|
||||
else
|
||||
{
|
||||
total = -1;
|
||||
}
|
||||
|
||||
return total;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user