Ejemplo n.º 1
0
        public Application(IAbout a)
        {
            a.Ammo.Hide();
            a.Gold.Hide();
            a.Header.innerText = "Hi Chris!";


            var foo = new UltraRaycast6Sprite();



            foo.AttachSpriteTo(a.Foo);

            foo.AtGotItem +=
                e =>
            {
                if (e == "ammo")
                {
                    new ammo().AttachTo(a.Bag);
                }
                else if (e == "gold")
                {
                    new goldchest().AttachTo(a.Bag);
                }

                new UltraWebService().PlayerGotItem(e,
                                                    y =>
                {
                    // server anwsered :)
                }
                                                    );
            };
        }
Ejemplo n.º 2
0
		public Application(IAbout a)
		{
	

			a.Ammo.Hide();
			a.Gold.Hide();
			a.Header.innerText = "Hi Chris!";


			var foo = new UltraRaycast6Sprite();



			foo.AttachSpriteTo(a.Foo);

			foo.AtGotItem +=
				e =>
				{
					if (e == "ammo")
					{
						new ammo().AttachTo(a.Bag);
					}
					else if (e == "gold")
					{
						new goldchest().AttachTo(a.Bag);
					}

					new UltraWebService().PlayerGotItem(e,
						y =>
						{
							// server anwsered :)
						}
					);
				};

		}