Example #1
0
File: Scene.cs Project: mokujin/DN
 public void RemoveActor(Actor actor)
 {
     if (actors.Contains(actor))
     {
         actors.Remove(actor);
         actor.Scene = null;
     }
     need_sort = true;
 }
Example #2
0
File: Scene.cs Project: mokujin/DN
 public void InsertActor(Actor actor)
 {
     if (actor.Scene != null)
         actor.Scene.RemoveActor(actor);
     if (!actors.Contains(actor))
     {
         actors.Add(actor);
         actor.Scene = this;
     }
     need_sort = true;
 }