Exemplo n.º 1
0
        public void Interact(MainCharacter character)
        {
            IsOpen = !IsOpen;

            if (SceneHelpers.GetThingsITouch(Scene, character, new List <Type>()
            {
                typeof(Door)
            }).Contains(this))
            {
                if (IsOpen)
                {
                    character.Bounds.MoveTo(this.ClosedBounds.Location);
                }
                else
                {
                    character.Bounds.MoveTo(this.OpenLocation);
                }
            }

            Scene.Update(this);
            Scene.Update(character);
        }
Exemplo n.º 2
0
 public void Interact(MainCharacter character)
 {
     IsFiring = !IsFiring;
 }