public void Rule2(float dt, World world){ switch (s2) { case -1: if(!(AnimationEnd)) { s2 = -1; return; }else { goto case 21; } case 21: AnimationEnd = AnimationEnd; Fox.Walk = true; Fox.Sing = false; Bird.Sing = false; Foreground.RotatingVelocity = -7f; Background.RotatingVelocity = -2f; s2 = 20; return; case 20: if(!(((CurrentCheckpoint.IsSome) && (((1.5f) > (UnityEngine.Vector3.Distance(Fox.Position,CurrentCheckpoint.Value.position))))))) { s2 = 20; return; }else { goto case 19; } case 19: AnimationEnd = AnimationEnd; Fox.Walk = false; Fox.Sing = false; Bird.Sing = false; Foreground.RotatingVelocity = 0f; Background.RotatingVelocity = 0f; s2 = 18; return; case 18: if(!(!(Bird.Walk))) { s2 = 18; return; }else { goto case 17; } case 17: AnimationEnd = AnimationEnd; Fox.Walk = false; Fox.Sing = true; Bird.Sing = false; Foreground.RotatingVelocity = 0f; Background.RotatingVelocity = 0f; s2 = 16; return; case 16: UnityAudio.Play(CurrentTrack.Value.ItemName); count_down4 = ((ClipLength) / (2f)); goto case 15; case 15: if(((count_down4) > (0f))) { count_down4 = ((count_down4) - (dt)); s2 = 15; return; }else { goto case 13; } case 13: AnimationEnd = AnimationEnd; Fox.Walk = false; Fox.Sing = false; Bird.Sing = true; Foreground.RotatingVelocity = Foreground.RotatingVelocity; Background.RotatingVelocity = Background.RotatingVelocity; s2 = 11; return; case 11: count_down3 = ((ClipLength) / (2f)); goto case 12; case 12: if(((count_down3) > (0f))) { count_down3 = ((count_down3) - (dt)); s2 = 12; return; }else { goto case 10; } case 10: AnimationEnd = AnimationEnd; Fox.Walk = false; Fox.Sing = false; Bird.Sing = false; Foreground.RotatingVelocity = Foreground.RotatingVelocity; Background.RotatingVelocity = Background.RotatingVelocity; s2 = 9; return; case 9: ___item21 = CurrentTrack.Value; goto case 8; case 8: if(!(((Button.Yes) || (Button.No)))) { s2 = 8; return; }else { goto case 5; } case 5: if(((___item21.Answer) || (RunningTutorial))) { goto case 3; }else { goto case 4; } case 3: UnityAudio.Play("cheer"); s2 = 2; return; case 4: UnityAudio.Play("boo"); s2 = 2; return; case 2: if(!(Bird.Walk)) { s2 = 2; return; }else { goto case 1; } case 1: if(!(!(Bird.Walk))) { s2 = 1; return; }else { goto case 0; } case 0: AnimationEnd = false; Fox.Walk = Fox.Walk; Fox.Sing = Fox.Sing; Bird.Sing = Bird.Sing; Foreground.RotatingVelocity = Foreground.RotatingVelocity; Background.RotatingVelocity = Background.RotatingVelocity; s2 = -1; return; default: return;}}
public void Rule1(float dt, World world){ switch (s1) { case -1: counter12 = -1; if((((TrackManager.CurrentTutorial).Count) == (0))) { goto case 4; }else { ___item10 = (TrackManager.CurrentTutorial)[0]; goto case 12; } case 12: counter12 = ((counter12) + (1)); if((((((TrackManager.CurrentTutorial).Count) == (counter12))) || (((counter12) > ((TrackManager.CurrentTutorial).Count))))) { goto case 4; }else { ___item10 = (TrackManager.CurrentTutorial)[counter12]; goto case 13; } case 13: CurrentTrack = (new Just<Track.Item>(___item10)); AnimationEnd = true; Button.Yes = Button.Yes; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = true; StopGame = StopGame; s1 = 29; return; case 29: if(!(Bird.Sing)) { s1 = 29; return; }else { goto case 28; } case 28: if(!(!(Bird.Sing))) { s1 = 28; return; }else { goto case 26; } case 26: count_down2 = 2f; goto case 27; case 27: if(((count_down2) > (0f))) { count_down2 = ((count_down2) - (dt)); s1 = 27; return; }else { goto case 25; } case 25: if(___item10.IsSame) { ___texture10 = "yes_frames"; }else { ___texture10 = "no_frames"; } CurrentTrack = CurrentTrack; AnimationEnd = AnimationEnd; Button.Yes = Button.Yes; Button.Index = 0; Button.AnimationNumber = 5; Button.Texture = ___texture10; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 18; return; case 18: counter19 = -1; if((((Enumerable.Range(0,((1) + (((((Button.AnimationNumber) - (1))) - (0))))).ToList<System.Int32>()).Count) == (0))) { goto case 17; }else { ___i10 = (Enumerable.Range(0,((1) + (((((Button.AnimationNumber) - (1))) - (0))))).ToList<System.Int32>())[0]; goto case 19; } case 19: counter19 = ((counter19) + (1)); if((((((Enumerable.Range(0,((1) + (((((Button.AnimationNumber) - (1))) - (0))))).ToList<System.Int32>()).Count) == (counter19))) || (((counter19) > ((Enumerable.Range(0,((1) + (((((Button.AnimationNumber) - (1))) - (0))))).ToList<System.Int32>()).Count))))) { goto case 17; }else { ___i10 = (Enumerable.Range(0,((1) + (((((Button.AnimationNumber) - (1))) - (0))))).ToList<System.Int32>())[counter19]; goto case 20; } case 20: CurrentTrack = CurrentTrack; AnimationEnd = AnimationEnd; Button.Yes = Button.Yes; Button.Index = ___i10; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 21; return; case 21: count_down1 = 0.15f; goto case 22; case 22: if(((count_down1) > (0f))) { count_down1 = ((count_down1) - (dt)); s1 = 22; return; }else { s1 = 19; return; } case 17: CurrentTrack = (new Nothing<Track.Item>()); AnimationEnd = true; Button.Yes = true; Button.Index = 0; Button.AnimationNumber = 1; Button.Texture = "both_up"; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 16; return; case 16: CurrentTrack = CurrentTrack; AnimationEnd = AnimationEnd; Button.Yes = false; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 15; return; case 15: if(!(!(AnimationEnd))) { s1 = 15; return; }else { goto case 14; } case 14: CurrentTrack = CurrentTrack; AnimationEnd = true; Button.Yes = Button.Yes; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 12; return; case 4: counter5 = -1; if((((TrackManager.CurrentExperiment).Count) == (0))) { goto case 3; }else { ___item110 = (TrackManager.CurrentExperiment)[0]; goto case 5; } case 5: counter5 = ((counter5) + (1)); if((((((TrackManager.CurrentExperiment).Count) == (counter5))) || (((counter5) > ((TrackManager.CurrentExperiment).Count))))) { goto case 3; }else { ___item110 = (TrackManager.CurrentExperiment)[counter5]; goto case 6; } case 6: CurrentTrack = (new Just<Track.Item>(___item110)); AnimationEnd = true; Button.Yes = Button.Yes; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 9; return; case 9: CurrentTrack = CurrentTrack; AnimationEnd = true; Button.Yes = Button.Yes; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = false; StopGame = StopGame; s1 = 8; return; case 8: if(!(!(AnimationEnd))) { s1 = 8; return; }else { goto case 7; } case 7: CurrentTrack = CurrentTrack; AnimationEnd = true; Button.Yes = Button.Yes; Button.Index = Button.Index; Button.AnimationNumber = Button.AnimationNumber; Button.Texture = Button.Texture; RunningTutorial = RunningTutorial; StopGame = StopGame; s1 = 5; return; case 3: ___elems10 = TrackManager.ItemsToPlay; Track.TrackManager.SaveAll(); Track.TrackManager.MoveNextExperiment(); UnityEngine.Application.LoadLevel("End"); s1 = -1; return; default: return;}}