public void RemoveZombie()
        {
            WalkingDead zombie = zombies.Last();

            if (zombie != null)
            {
                zombies.Remove(zombie);
                zombie.Disassemble();
            }

            UIAccessibility.PostNotification(LayoutChangedNotification, null);
            removeZombieSound.Play();
        }
Esempio n. 2
0
		public void AddZombie ()
		{
			float chrome = 50;
			var frame = new RectangleF (chrome, Frame.Size.Height - 160 - chrome, 80, 200);
			var dead = new WalkingDead (frame);
			dead.WalkingDeadDidDisassemble += WalkingDeadDidDisassemble;
			zombies.Add (dead);
			AddSubview (dead);

			dead.Animate ();

			UIAccessibility.PostNotification (LayoutChangedNotification, null);

			newZombieSound.Play ();
		}
        public void AddZombie()
        {
            float chrome = 50;
            var   frame  = new CGRect(chrome, Frame.Size.Height - 160 - chrome, 80, 200);
            var   dead   = new WalkingDead(frame);

            dead.WalkingDeadDidDisassemble += WalkingDeadDidDisassemble;
            zombies.Add(dead);
            AddSubview(dead);

            dead.Animate();

            UIAccessibility.PostNotification(LayoutChangedNotification, null);

            newZombieSound.Play();
        }
Esempio n. 4
0
		public void WalkingDeadDidDisassemble (WalkingDead walkingDead)
		{
			zombies.Remove (walkingDead);
			walkingDead.RemoveFromSuperview ();
		}
 public void WalkingDeadDidDisassemble(WalkingDead walkingDead)
 {
     zombies.Remove(walkingDead);
     walkingDead.RemoveFromSuperview();
 }