Esempio n. 1
0
 public LongRunningAction FadeTo(string colorName)
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   CameraService.\u003C\u003Ec__DisplayClass2 cDisplayClass2 = new CameraService.\u003C\u003Ec__DisplayClass2();
   Color color = Util.FromName(colorName);
   // ISSUE: reference to a compiler-generated field
   cDisplayClass2.component = new ScreenFade(ServiceHelper.Game)
   {
     FromColor = new Color(new Vector4(color.ToVector3(), 0.0f)),
     ToColor = color,
     Duration = 2f
   };
   // ISSUE: reference to a compiler-generated field
   ServiceHelper.AddComponent((IGameComponent) cDisplayClass2.component);
   // ISSUE: reference to a compiler-generated method
   return new LongRunningAction(new Func<float, float, bool>(cDisplayClass2.\u003CFadeTo\u003Eb__1));
 }
Esempio n. 2
0
        public LongRunningAction FadeTo(string colorName)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            CameraService.\u003C\u003Ec__DisplayClass2 cDisplayClass2 = new CameraService.\u003C\u003Ec__DisplayClass2();
            Color color = Util.FromName(colorName);

            // ISSUE: reference to a compiler-generated field
            cDisplayClass2.component = new ScreenFade(ServiceHelper.Game)
            {
                FromColor = new Color(new Vector4(color.ToVector3(), 0.0f)),
                ToColor   = color,
                Duration  = 2f
            };
            // ISSUE: reference to a compiler-generated field
            ServiceHelper.AddComponent((IGameComponent)cDisplayClass2.component);
            // ISSUE: reference to a compiler-generated method
            return(new LongRunningAction(new Func <float, float, bool>(cDisplayClass2.\u003CFadeTo\u003Eb__1)));
        }