Beispiel #1
0
 /// <summary>Determine what colour to draw this fixtures gizmo</summary>
 protected Color GetColor()
 {
             #if UNITY_EDITOR
     if (Selection.Contains(gameObject))
     {
         return(LPColors.Selected);
     }
     else if (IsSensor)
     {
         return(LPColors.Sensor);
     }
             #endif
     if (body != null)
     {
         return(body.GetColor());
     }
     return(GetComponent <LPBody>().GetColor());
 }