Пример #1
0
 public virtual void PowerUp()
 {
     if (tag == "levelGem" || tag == "DarkLevelGem")
     {
         levelman.gemActivated();
     }
     if (success_sound)
     {
         success_sound.Play();
     }
     GemLight.color = selected_light;
     //StartCoroutine(Fade(GemLight, (GemLight.intensity * 1.25f)));
     if (gem_area_sound)
     {
         gem_area_sound.Stop();
     }
 }
Пример #2
0
 private void PowerUp()
 {
     Debug.Log(this.tag);
     if (tag == "levelGem")
     {
         levelman.gemActivated();
     }
     if (success_sound)
     {
         success_sound.Play();
     }
     GemLight.color = selected_light;
     StartCoroutine(Fade(GemLight, (GemLight.intensity * 0.75f)));
     ActAccordingToColor();
     if (gem_area_sound)
     {
         gem_area_sound.Stop();
     }
 }