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 :) } ); }; }
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 :) } ); }; }