コード例 #1
0
 partial void SetLightSourceState(bool enabled, float brightness)
 {
     if (light == null)
     {
         return;
     }
     light.Enabled = enabled;
     light.Color   = LightColor.Multiply(brightness);
 }