public static void TriggerInstrumentHighlight(HighlightManager.InstrumentType type) { if (Highlight != null) { Highlight(type); } }
public void HighlightWithContainer(HighlightManager.InstrumentType instrumentType) { if (instrumentOnStage != null) { InstrumentDragAndDrop instrument = instrumentOnStage.GetComponent <InstrumentDragAndDrop>(); if (instrument.instrumentType != instrumentType) { glowSparkle.gameObject.SetActive(false); } } }
public void HighlightWithContainer(HighlightManager.InstrumentType type) { collider.enabled = false; UISprite sprite = this.GetComponent <UISprite>(); if (instrumentType == type) { sprite.depth = highlightDepth; currentContainer.GetComponent <UISprite>().depth = highlightDepth - 1; startingContainer.GetComponent <UISprite>().depth = highlightDepth - 1; } else { sprite.depth = normalDepth; if (currentContainer.tag == "stage_grid") { audio.volume = nonHighlightedInstrumentVolume; sprite.color = noHighlightColor; } currentContainer.GetComponent <UISprite>().depth = normalDepth - 1; startingContainer.GetComponent <UISprite>().depth = normalDepth - 1; } }
void OnHighlightOn(HighlightManager.InstrumentType instrumentType) { playButton.collider.enabled = false; demoButton.collider.enabled = false; }