setFocusHighlightColor() public static method

public static setFocusHighlightColor ( Renderer rend ) : void
rend Renderer
return void
 void setFocusHighlight()
 {
     if (focus == true)
     {
         Renderer rend = GetComponent <Renderer>();
         ColorUtil.setFocusHighlightColor(rend);
     }
     else
     {
         Renderer rend = GetComponent <Renderer>();
         ColorUtil.removeFocusHighlightColor(rend);
     }
 }
Esempio n. 2
0
 void setFocusHighlight()
 {
     if (focus == true)
     {
         Renderer rend = GetComponent <Renderer>();
         ColorUtil.setFocusHighlightColor(rend);
         objectTypeText.color = new Color(0, 0, 0);
     }
     else
     {
         Renderer rend = GetComponent <Renderer>();
         ColorUtil.removeFocusHighlightColor(rend);
         if (whiteText)
         {
             objectTypeText.color = new Color(255, 255, 255);
         }
         else
         {
             objectTypeText.color = new Color(0, 0, 0);
         }
     }
 }