示例#1
0
 private void CleanupCamera()
 {
     CameraSubject = null;
 }
示例#2
0
        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);
        }
示例#3
0
 public void SetCameraSubject(Actor actor)
 {
     CameraSubject = actor;
 }
示例#4
0
        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);
        }
示例#5
0
 public void ClearCameraSubject()
 {
     CameraSubject = null;
 }