Beispiel #1
0
 /// <summary>
 /// Sets up our ambient light as white with full intensity for now
 /// </summary>
 protected override void AddInitialLights()
 {
     Lights.AddChild(new AmbientLight(Color.White));
 }
Beispiel #2
0
 /// <summary>
 /// Adds a Light to this screen's Lights manager
 /// </summary>
 /// <param name="lightToAdd">The light to add</param>
 /// <param name="load">A flag to indicate whether LoadContent should be called on this light when adding</param>
 /// <param name="initialise">A flag to indicate whether Initialise should be called on this light when adding</param>
 public T AddLight <T>(T lightToAdd, bool load = false, bool initialise = false) where T : Light
 {
     return(Lights.AddChild(lightToAdd, load, initialise));
 }