Exemplo n.º 1
0
 /// <summary>
 /// The HighlightObject method calls the Highlight method on the highlighter attached to the given GameObject with the provided colour.
 /// </summary>
 /// <param name="model">The GameObject to attempt to call the Highlight on.</param>
 /// <param name="highlightColor">The colour to highlight to.</param>
 /// <param name="fadeDuration">The duration in time to fade from the initial colour to the target colour.</param>
 public static void HighlightObject(GameObject model, Color?highlightColor, float fadeDuration = 0f)
 {
     SetupInstance();
     if (instance != null)
     {
         instance.InternalHighlightObject(model, highlightColor, fadeDuration);
     }
 }