Beispiel #1
0
 public static void DrawHighlight(GameObject obj, Color color)
 {
     HighlightingSystem.Highlighter h = obj.GetComponent <HighlightingSystem.Highlighter>();
     if (h == null)
     {
         h = obj.AddComponent <HighlightingSystem.Highlighter>();
     }
     h.OccluderOn();
     h.SeeThroughOn();
     h.ConstantOn(color);
 }
Beispiel #2
0
 /*Idea of UC-Skullz313*/
 public static void MakeMeGlow(this GameObject me, Color color, bool glow)
 {
     if (!me)
     {
         return;
     }
     HighlightingSystem.Highlighter Glower = me.GetComponent <HighlightingSystem.Highlighter>();
     if (!Glower)
     {
         Glower = me.AddComponent <HighlightingSystem.Highlighter>();
     }
     Glower.ConstantParams(color);
     if (glow)
     {
         Glower.ConstantOn();
     }
     else
     {
         Glower.ConstantOff();
     }
 }