Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Token: 0x02000038 RID: 56
- private sealed class <Awake>d__18 : IAsyncStateMachine
- {
- // Token: 0x060000D4 RID: 212 RVA: 0x00004ED4 File Offset: 0x000030D4
- void IAsyncStateMachine.MoveNext()
- {
- int num = this.<>1__state;
- try
- {
- AsyncSubject<CViewManager> asyncSubject;
- if (num != 0)
- {
- this.<>4__this.<>n__0();
- this.<>4__this.screeshot = new Screenshooter(this.<>4__this.Camera);
- asyncSubject = App.Common.ResolveAsync<CViewManager>().GetAwaiter<CViewManager>();
- if (!asyncSubject.IsCompleted)
- {
- this.<>1__state = 0;
- this.<>u__1 = asyncSubject;
- PhotoboothScreen.<Awake>d__18 <Awake>d__ = this;
- this.<>t__builder.AwaitOnCompleted<AsyncSubject<CViewManager>, PhotoboothScreen.<Awake>d__18>(ref asyncSubject, ref <Awake>d__);
- return;
- }
- }
- else
- {
- asyncSubject = (AsyncSubject<CViewManager>)this.<>u__1;
- this.<>u__1 = null;
- this.<>1__state = -1;
- }
- this.<>s__1 = asyncSubject.GetResult();
- this.<>4__this.view = this.<>s__1;
- this.<>s__1 = null;
- this.<>4__this.initialPositionBottomPanel = this.<>4__this.BottomPanel.anchoredPosition3D;
- this.<>4__this.Back.Subscribe(delegate()
- {
- base.TempDisableBack();
- switch (this.<>4__this.state.Value)
- {
- case PhotoboothScreen.StateVariants.Main:
- this.<>4__this.view.Show.Execute(typeof(MainScreen));
- break;
- case PhotoboothScreen.StateVariants.Environment:
- base.ChangeEnvironmentState();
- this.<>4__this.view.Show.Execute(typeof(MainScreen));
- break;
- case PhotoboothScreen.StateVariants.Sharing:
- base.ChangePhotoSharingState(false);
- base.SwitchButtonState(this.<>4__this.Environment, true);
- base.SwitchButtonState(this.<>4__this.Wardrobe, true);
- break;
- }
- });
- this.<>4__this.Photobooth.Subscribe(new Action(this.<>4__this.ChangeEnvironmentState));
- this.<>4__this.MakePhoto.Subscribe(delegate()
- {
- this.<>4__this.screeshot.Take();
- base.ChangePhotoSharingState(true);
- });
- this.<>4__this.SharePhoto.Subscribe(delegate()
- {
- this.<>4__this.screeshot.Share();
- base.ChangePhotoSharingState(false);
- });
- this.<>4__this.Wardrobe.Subscribe(delegate()
- {
- this.<>4__this.view.Show.Execute(typeof(WardrobeScreen));
- base.ChangeEnvironmentState();
- });
- this.<>4__this.Profile.Subscribe(delegate()
- {
- this.<>4__this.view.Show.Execute(typeof(ProfileScreen));
- base.ChangeEnvironmentState();
- });
- this.<>4__this.Environment.Subscribe(new Action(this.<>4__this.ChangeEnvironmentState));
- this.<>4__this.ContentPanel.GetComponentsInChildren<Button>().ForEach(delegate(Button b)
- {
- PhotoboothScreen.<>c__DisplayClass18_0 CS$<>8__locals1 = new PhotoboothScreen.<>c__DisplayClass18_0();
- CS$<>8__locals1.<>4__this = this.<>4__this;
- CS$<>8__locals1.b = b;
- CS$<>8__locals1.b.Subscribe(new Action(CS$<>8__locals1.<Awake>b__6));
- });
- this.<>4__this.ChangeEnvironmentState();
- }
- catch (Exception exception)
- {
- this.<>1__state = -2;
- this.<>t__builder.SetException(exception);
- return;
- }
- this.<>1__state = -2;
- this.<>t__builder.SetResult();
- }
- // Token: 0x060000D5 RID: 213 RVA: 0x00003CE4 File Offset: 0x00001EE4
- [DebuggerHidden]
- void IAsyncStateMachine.SetStateMachine(IAsyncStateMachine stateMachine)
- {
- }
- // Token: 0x040000D4 RID: 212
- public int <>1__state;
- // Token: 0x040000D5 RID: 213
- public AsyncVoidMethodBuilder <>t__builder;
- // Token: 0x040000D6 RID: 214
- public PhotoboothScreen <>4__this;
- // Token: 0x040000D7 RID: 215
- private CViewManager <>s__1;
- // Token: 0x040000D8 RID: 216
- private object <>u__1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement