Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.86 KB | None | 0 0
  1. // Token: 0x02000038 RID: 56
  2.         private sealed class <Awake>d__18 : IAsyncStateMachine
  3.         {
  4.             // Token: 0x060000D4 RID: 212 RVA: 0x00004ED4 File Offset: 0x000030D4
  5.             void IAsyncStateMachine.MoveNext()
  6.             {
  7.                 int num = this.<>1__state;
  8.                 try
  9.                 {
  10.                     AsyncSubject<CViewManager> asyncSubject;
  11.                     if (num != 0)
  12.                     {
  13.                         this.<>4__this.<>n__0();
  14.                         this.<>4__this.screeshot = new Screenshooter(this.<>4__this.Camera);
  15.                         asyncSubject = App.Common.ResolveAsync<CViewManager>().GetAwaiter<CViewManager>();
  16.                         if (!asyncSubject.IsCompleted)
  17.                         {
  18.                             this.<>1__state = 0;
  19.                             this.<>u__1 = asyncSubject;
  20.                             PhotoboothScreen.<Awake>d__18 <Awake>d__ = this;
  21.                             this.<>t__builder.AwaitOnCompleted<AsyncSubject<CViewManager>, PhotoboothScreen.<Awake>d__18>(ref asyncSubject, ref <Awake>d__);
  22.                             return;
  23.                         }
  24.                     }
  25.                     else
  26.                     {
  27.                         asyncSubject = (AsyncSubject<CViewManager>)this.<>u__1;
  28.                         this.<>u__1 = null;
  29.                         this.<>1__state = -1;
  30.                     }
  31.                     this.<>s__1 = asyncSubject.GetResult();
  32.                     this.<>4__this.view = this.<>s__1;
  33.                     this.<>s__1 = null;
  34.                     this.<>4__this.initialPositionBottomPanel = this.<>4__this.BottomPanel.anchoredPosition3D;
  35.                     this.<>4__this.Back.Subscribe(delegate()
  36.                     {
  37.                         base.TempDisableBack();
  38.                         switch (this.<>4__this.state.Value)
  39.                         {
  40.                         case PhotoboothScreen.StateVariants.Main:
  41.                             this.<>4__this.view.Show.Execute(typeof(MainScreen));
  42.                             break;
  43.                         case PhotoboothScreen.StateVariants.Environment:
  44.                             base.ChangeEnvironmentState();
  45.                             this.<>4__this.view.Show.Execute(typeof(MainScreen));
  46.                             break;
  47.                         case PhotoboothScreen.StateVariants.Sharing:
  48.                             base.ChangePhotoSharingState(false);
  49.                             base.SwitchButtonState(this.<>4__this.Environment, true);
  50.                             base.SwitchButtonState(this.<>4__this.Wardrobe, true);
  51.                             break;
  52.                         }
  53.                     });
  54.                     this.<>4__this.Photobooth.Subscribe(new Action(this.<>4__this.ChangeEnvironmentState));
  55.                     this.<>4__this.MakePhoto.Subscribe(delegate()
  56.                     {
  57.                         this.<>4__this.screeshot.Take();
  58.                         base.ChangePhotoSharingState(true);
  59.                     });
  60.                     this.<>4__this.SharePhoto.Subscribe(delegate()
  61.                     {
  62.                         this.<>4__this.screeshot.Share();
  63.                         base.ChangePhotoSharingState(false);
  64.                     });
  65.                     this.<>4__this.Wardrobe.Subscribe(delegate()
  66.                     {
  67.                         this.<>4__this.view.Show.Execute(typeof(WardrobeScreen));
  68.                         base.ChangeEnvironmentState();
  69.                     });
  70.                     this.<>4__this.Profile.Subscribe(delegate()
  71.                     {
  72.                         this.<>4__this.view.Show.Execute(typeof(ProfileScreen));
  73.                         base.ChangeEnvironmentState();
  74.                     });
  75.                     this.<>4__this.Environment.Subscribe(new Action(this.<>4__this.ChangeEnvironmentState));
  76.                     this.<>4__this.ContentPanel.GetComponentsInChildren<Button>().ForEach(delegate(Button b)
  77.                     {
  78.                         PhotoboothScreen.<>c__DisplayClass18_0 CS$<>8__locals1 = new PhotoboothScreen.<>c__DisplayClass18_0();
  79.                         CS$<>8__locals1.<>4__this = this.<>4__this;
  80.                         CS$<>8__locals1.b = b;
  81.                         CS$<>8__locals1.b.Subscribe(new Action(CS$<>8__locals1.<Awake>b__6));
  82.                     });
  83.                     this.<>4__this.ChangeEnvironmentState();
  84.                 }
  85.                 catch (Exception exception)
  86.                 {
  87.                     this.<>1__state = -2;
  88.                     this.<>t__builder.SetException(exception);
  89.                     return;
  90.                 }
  91.                 this.<>1__state = -2;
  92.                 this.<>t__builder.SetResult();
  93.             }
  94.  
  95.             // Token: 0x060000D5 RID: 213 RVA: 0x00003CE4 File Offset: 0x00001EE4
  96.             [DebuggerHidden]
  97.             void IAsyncStateMachine.SetStateMachine(IAsyncStateMachine stateMachine)
  98.             {
  99.             }
  100.  
  101.             // Token: 0x040000D4 RID: 212
  102.             public int <>1__state;
  103.  
  104.             // Token: 0x040000D5 RID: 213
  105.             public AsyncVoidMethodBuilder <>t__builder;
  106.  
  107.             // Token: 0x040000D6 RID: 214
  108.             public PhotoboothScreen <>4__this;
  109.  
  110.             // Token: 0x040000D7 RID: 215
  111.             private CViewManager <>s__1;
  112.  
  113.             // Token: 0x040000D8 RID: 216
  114.             private object <>u__1;
  115.         }
  116.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement