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