Class that represents a Magical Box event
 void ParentEmitter_ParticleDeath(MBEvent e)
 {
     if (e.Particle.HasUserData(mGameObjectSlotID)) {
         Transform ptobj = (Transform)e.Particle.UserData[mGameObjectSlotID];
         if (ptobj)
             DespawnObject(ptobj);
     }
 }
Beispiel #2
0
 void emEvent(MBEvent e)
 {
     if (Target)
         Target.SendMessage(Method,e);
 }
Beispiel #3
0
 public void Invoke(MBEvent e)
 {
     if (mTargets.Count==0)
         Prepare();
     foreach (MBMessageObject o in mTargets) {
         if (o.Object!=null)
             o.Method.Invoke(o.Object, new object[] { e });
     }
 }
Beispiel #4
0
 void callbackAutoDespawn(MBEvent e)
 {
     Despawn((MBEmitter)e.Context);
 }