Ejemplo n.º 1
0
 public override void Launch(float dt)
 {
     if (!b)
     {
         for (int i = 0; i < Zombie.ZombieShowLayer.SharedZombieShow().Actors.Count; i++)
         {
             Actor actor = Zombie.ZombieShowLayer.SharedZombieShow().Actors[i];
             if (actor.AtVector == Vector)
             {
                 _actor = actor;
                 Detonate();
                 b = true;
                 return;
             }
         }
     }
 }
Ejemplo n.º 2
0
 public void RemoveChild(Actor actor)
 {
     ActorLv.SceneActorCount--;
     RemoveChild(actor.Sprite);
     Actors.Remove(actor);
 }
Ejemplo n.º 3
0
 public void AddChild(Actor actor)
 {
     ActorLv.SceneActorCount++;
     AddChild(actor, 10);
     Actors.Add(actor);
 }