コード例 #1
0
ファイル: ZonedAction.cs プロジェクト: JuroGandalf/Ragnarok
 /// <summary>
 /// The constructor creates a ZonedAction action for use by 
 /// an emitter. To add a ZonedAction to all particles created by an emitter, use the
 /// emitter's addAction method.
 /// 
 /// @see org.flintparticles.emitters.Emitter#addAction()
 /// </summary>
 /// <param name="action">The action to apply when inside the zone.</param>
 /// <param name="zone">The zone in which to apply the action.</param>
 /// <param name="invertZone">If false (the default) the action is applied only to particles inside 
 /// the zone. If true the action is applied only to particles outside the zone.</param>
 public ZonedAction(Behaviour action, IZone zone, bool invertZone)
 {
     m_action = action;
     m_zone = zone;
     m_invert = invertZone;
 }
コード例 #2
0
 /// <summary>
 /// The constructor creates a ZonedAction action for use by
 /// an emitter. To add a ZonedAction to all particles created by an emitter, use the
 /// emitter's addAction method.
 ///
 /// @see org.flintparticles.emitters.Emitter#addAction()
 /// </summary>
 /// <param name="action">The action to apply when inside the zone.</param>
 /// <param name="zone">The zone in which to apply the action.</param>
 /// <param name="invertZone">If false (the default) the action is applied only to particles inside
 /// the zone. If true the action is applied only to particles outside the zone.</param>
 public ZonedAction(Behaviour action, IZone zone, bool invertZone)
 {
     m_action = action;
     m_zone   = zone;
     m_invert = invertZone;
 }
コード例 #3
0
ファイル: ZonedAction.cs プロジェクト: JuroGandalf/Ragnarok
 public ZonedAction(Behaviour action, IZone zone)
 {
     m_action = action;
     m_zone = zone;
     m_invert = false;
 }
コード例 #4
0
 public ZonedAction(Behaviour action, IZone zone)
 {
     m_action = action;
     m_zone   = zone;
     m_invert = false;
 }