public void LoadAssets() { background = FullScreenQuad.create("SceneTwelve/bgletgo"); bottomDither = resourceFactory.Create("SceneTwelve/BottomDither"); background.visible(false); bottomDither.SetActive(false); }
public override void LoadAssets() { background = FullScreenQuad.create(this, "pedal_stomp_bg"); shoe = resourceFactory.Create("SceneTen/Shoe"); amp = resourceFactory.Create(this, "Amp"); wires = resourceFactory.Create(this, "Wires"); wireShadow = resourceFactory.Create(this, "WireShadow"); background.visible(false); shoe.SetActive(false); amp.SetActive(false); wires.SetActive(false); wireShadow.SetActive(false); // double the scale on all of these because the art is half-size shoe.transform.localScale = Vector3.one * 2; shoe.GetComponent <Sprite>().setScreenPosition(0, 164); amp.GetComponent <Sprite>().setScreenPosition(130, 50); amp.transform.localScale = Vector3.one * 2; wires.GetComponent <Sprite>().setScreenPosition(30, 30); wires.transform.localScale = Vector3.one * 2; wireShadow.GetComponent <Sprite>().setScreenPosition(30, 30); wireShadow.transform.localScale = Vector3.one * 2; pedalStomped = new PedalStomped(new List <Sprite> { ampSprite, wiresSprite, wireShadowSprite }); pedalUnStomped = new PedalUnStomped(new List <Sprite> { ampSprite, wiresSprite, wireShadowSprite }); stompFoot = new StompFoot(new List <Sprite> { shoeSprite }); retractFoot = new RetractFoot(new List <Sprite> { shoeSprite }); animatables = new[] { pedalStomped, pedalUnStomped, stompFoot, retractFoot }; }
public void Show() { background.visible(true); bottomDither.SetActive(true); }
public override void LoadAssets() { background = FullScreenQuad.create(this, "pedal_stomp_bg"); shoe = resourceFactory.Create("SceneTen/Shoe"); amp = resourceFactory.Create(this, "Amp"); wires = resourceFactory.Create(this, "Wires"); wireShadow = resourceFactory.Create(this, "WireShadow"); background.visible(false); shoe.SetActive(false); amp.SetActive(false); wires.SetActive(false); wireShadow.SetActive(false); // double the scale on all of these because the art is half-size shoe.transform.localScale = Vector3.one * 2; shoe.GetComponent<Sprite>().setScreenPosition(0, 164); amp.GetComponent<Sprite>().setScreenPosition(130, 50); amp.transform.localScale = Vector3.one * 2; wires.GetComponent<Sprite>().setScreenPosition(30, 30); wires.transform.localScale = Vector3.one * 2; wireShadow.GetComponent<Sprite>().setScreenPosition(30, 30); wireShadow.transform.localScale = Vector3.one * 2; pedalStomped = new PedalStomped(new List<Sprite> {ampSprite, wiresSprite, wireShadowSprite}); pedalUnStomped = new PedalUnStomped(new List<Sprite> {ampSprite, wiresSprite, wireShadowSprite}); stompFoot = new StompFoot(new List<Sprite> {shoeSprite}); retractFoot = new RetractFoot(new List<Sprite> {shoeSprite}); animatables = new[] {pedalStomped, pedalUnStomped, stompFoot, retractFoot}; }