예제 #1
0
 public void RemoveActor(SceneSnapshot snapshot, SceneActor actor)
 {
     if (snapshot.Actors.Contains(actor.Desc.Id))
     {
         snapshot.Actors.Remove(actor.Desc.Id);
     }
 }
예제 #2
0
 public void AddActor(SceneSnapshot snapshot, SceneActor actor)
 {
     if (!snapshot.Actors.Contains(actor.Desc.Id))
     {
         snapshot.Actors.Add(actor.Desc.Id);
     }
 }