|
@@ -8,14 +8,14 @@ import DirectNotifyGlobal
|
|
|
class ParticleEffect(NodePath):
|
|
class ParticleEffect(NodePath):
|
|
|
|
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ParticleEffect')
|
|
notify = DirectNotifyGlobal.directNotify.newCategory('ParticleEffect')
|
|
|
- id = 1
|
|
|
|
|
|
|
+ pid = 1
|
|
|
|
|
|
|
|
def __init__(self, name=None, particles=None):
|
|
def __init__(self, name=None, particles=None):
|
|
|
"""__init__()"""
|
|
"""__init__()"""
|
|
|
NodePath.__init__(self)
|
|
NodePath.__init__(self)
|
|
|
if (name == None):
|
|
if (name == None):
|
|
|
- name = 'particle-effect-%d' % ParticleEffect.id
|
|
|
|
|
- ParticleEffect.id += 1
|
|
|
|
|
|
|
+ name = 'particle-effect-%d' % ParticleEffect.pid
|
|
|
|
|
+ ParticleEffect.pid += 1
|
|
|
self.assign(hidden.attachNewNode(name))
|
|
self.assign(hidden.attachNewNode(name))
|
|
|
# Record particle effect name
|
|
# Record particle effect name
|
|
|
self.name = name
|
|
self.name = name
|