mirror of
https://github.com/wassname/phaser.git
synced 2026-09-09 11:28:47 +08:00
Particle Emitter in and working. Nice and fast, and a lot more flexible than before.
This commit is contained in:
+5
-2
@@ -450,7 +450,10 @@ Phaser.Group.prototype = {
|
||||
*/
|
||||
getFirstExists: function (state) {
|
||||
|
||||
state = state || true;
|
||||
if (typeof state !== 'boolean')
|
||||
{
|
||||
state = true;
|
||||
}
|
||||
|
||||
if (this._container.first._iNext)
|
||||
{
|
||||
@@ -458,7 +461,7 @@ Phaser.Group.prototype = {
|
||||
|
||||
do
|
||||
{
|
||||
if (currentNode.exists == state)
|
||||
if (currentNode.exists === state)
|
||||
{
|
||||
return currentNode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user