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; } } } }
public void RemoveChild(Actor actor) { ActorLv.SceneActorCount--; RemoveChild(actor.Sprite); Actors.Remove(actor); }
public void AddChild(Actor actor) { ActorLv.SceneActorCount++; AddChild(actor, 10); Actors.Add(actor); }