Beispiel #1
0
 /// <summary>
 /// Finds a Light in this screen's Lights manager
 /// </summary>
 /// <typeparam name="K">The type that we wish to return the found light as</typeparam>
 /// <param name="backgroundObjectName">The predicate we will use to find our light</param>
 /// <returns>Returns the found light casted to type K, or null</returns>
 public K FindLight <K>(Predicate <Light> predicate) where K : Light
 {
     return(Lights.FindChild <K>(predicate));
 }