Exemplo n.º 1
0
        public void RemoveZombie()
        {
            WalkingDead zombie = zombies.Last();

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

            UIAccessibility.PostNotification(LayoutChangedNotification, null);
            removeZombieSound.Play();
        }
Exemplo 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 ();
		}
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
		public void WalkingDeadDidDisassemble (WalkingDead walkingDead)
		{
			zombies.Remove (walkingDead);
			walkingDead.RemoveFromSuperview ();
		}
Exemplo n.º 5
0
 public void WalkingDeadDidDisassemble(WalkingDead walkingDead)
 {
     zombies.Remove(walkingDead);
     walkingDead.RemoveFromSuperview();
 }