示例#1
0
 public static void TriggerInstrumentHighlight(HighlightManager.InstrumentType type)
 {
     if (Highlight != null)
     {
         Highlight(type);
     }
 }
示例#2
0
 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;
        }
    }
示例#4
0
 void OnHighlightOn(HighlightManager.InstrumentType instrumentType)
 {
     playButton.collider.enabled = false;
     demoButton.collider.enabled = false;
 }