private void CleanupCamera() { CameraSubject = null; }
protected void RemoveActor(Actor actor) { if (actor == null) throw new ArgumentNullException(); if (!Actors.Contains(actor)) throw new ArgumentException(); Actors.Remove(actor); Mode.RemoveFromScene(actor.Sprite); }
public void SetCameraSubject(Actor actor) { CameraSubject = actor; }
protected void AddActor(Actor actor) { if (actor == null) throw new ArgumentNullException(); if (Actors.Contains(actor)) throw new ArgumentException(); Actors.Add(actor); Mode.AddToScene(actor.Sprite); }
public void ClearCameraSubject() { CameraSubject = null; }