示例#1
0
 /// <summary>
 ///		Initializes a new instance and gives it the specified  
 ///		name.
 /// </summary>
 /// <param name="name">Name to name as node to.</param>
 /// <param name="emitRate">Delay (in milliseconds) between particle emissions.</param>
 /// <param name="emitCount">Amount of particles to emit each time.</param>
 /// <param name="emitShape">Shape to emit particles in.</param>
 public EmitterNode(string name, int maximumParticles)
 {
     _name = name;
     _maximumParticles = maximumParticles;
     _callbackProcess = new CallbackProcess(new CallbackProcessEventHandler(Think));
     ProcessManager.AttachProcess(_callbackProcess);
 }
示例#2
0
 public EmitterNode()
 {
     _name = "Emitter";
     _callbackProcess = new CallbackProcess(new CallbackProcessEventHandler(Think));
     ProcessManager.AttachProcess(_callbackProcess);
 }