コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        _timer += Time.deltaTime;
        if (PlayStepSounds && (_timer > stepDelay) && (_playerRB.velocity.x * _playerRB.velocity.x) > 0)
        {
            int caseValue = Random.Range(0, 5);
            switch (caseValue)
            {
            case 1:
                Step1.Play();
                break;

            case 2:
                Step2.Play();
                break;

            case 3:
                Step3.Play();
                break;

            case 4:
                Step4.Play();
                break;
            }
            _timer = 0;
        }
    }
コード例 #2
0
        public void Save(IniParser ini, string section)
        {
            ini.AddSetting(section, "Enabled", Enabled);
            ini.AddSetting(section, "ID", ID.ToString());
            ini.AddSetting(section, "Alias", Alias.ToString());
            ini.AddSetting(section, "Multihex", Multihex.ToString());
            ini.AddSetting(section, "Aim", Aim);
            ini.AddSetting(section, "Armor", Armor);
            ini.AddSetting(section, "Rotate", Rotate);

            ini.AddSetting(section, "Walk", Walk.ToString());
            ini.AddSetting(section, "Run", Run.ToString());
            ini.AddSetting(section, "Step1", Step1.ToString());
            ini.AddSetting(section, "Step2", Step2.ToString());
            ini.AddSetting(section, "Step3", Step3.ToString());
            ini.AddSetting(section, "Step4", Step4.ToString());

            if (Sound.Length > 0)
            {
                ini.AddNewSetting(section, "Sound", Sound);
            }
            else
            {
                ini.DeleteSetting(section, "Sound");
            }

            if (Comment.Length > 0)
            {
                ini.AddNewSetting(section, "Comment", Comment);
            }
            else
            {
                ini.DeleteSetting(section, "Comment");
            }
        }
コード例 #3
0
 private static void Run()
 {
     Step1.Run();
     Step2.Run();
     Step3.Run();
     Step4.Run();
 }
コード例 #4
0
        public Form1()
        {
            InitializeComponent();

            Step2.Hide();
            Step3.Hide();
            btn_showLayout.Text    = "Go Through All Steps";
            btn_showLayout.Enabled = false;
        }
コード例 #5
0
        private void button1_Click(object sender, EventArgs e)
        {
            holes_number = (int)numericUpDown1.Value;
            Step3.Show();
            btn_showLayout.Text    = "Show holes!?";
            btn_showLayout.Enabled = true;
            Create_Holes_Data_Fields(holes_number);
            Holes_settings holes_window = new Holes_settings(holes_number, holes_size, holes_starting, holes_lbl);

            holes_window.ShowDialog();
        }
コード例 #6
0
 public void StepFive()
 {
     Debug.Log("StepFiveInit");
     Step0.SetActive(false);
     Step1.SetActive(false);
     Step2.SetActive(false);
     Step3.SetActive(false);
     Step4.SetActive(false);
     Step5.SetActive(true);
     StartButton.SetActive(false);
     Hide1.SetActive(true);
     Next1.SetActive(true);
     Previous1.SetActive(true);
 }
コード例 #7
0
    public void MainMenu()
    {
        Step0.SetActive(false);
        Step1.SetActive(false);
        Step2.SetActive(false);
        Step3.SetActive(false);
        Step4.SetActive(false);
        Step5.SetActive(false);

        StartButton.SetActive(true);
        Hide1.SetActive(false);
        Next1.SetActive(false);
        Previous1.SetActive(false);
    }
コード例 #8
0
ファイル: Show_PicL3.cs プロジェクト: s885219s/Mikro
 // Use this for initialization
 void Start()
 {
     Time.fixedDeltaTime = 0.5f;
     Step1.SetActive(false);
     Step2.SetActive(false);
     Step3.SetActive(false);
     Step4.SetActive(false);
     Step5.SetActive(false);
     Step6.SetActive(false);
     Step7.SetActive(false);
     Step8.SetActive(false);
     Step9.SetActive(false);
     currenttime = Time.time;
     printcount  = 0;
     loop        = -1;
 }
コード例 #9
0
    public void StepOne()
    {
        Marker1.SetActive(true);
        Marker2.SetActive(true);
        Debug.Log("StepOneInit");
        FindObjectOfType <DistanceCalculator>();
        Step0.SetActive(false);
        Step1.SetActive(true);
        Step2.SetActive(false);
        Step3.SetActive(false);
        Step4.SetActive(false);
        Step5.SetActive(false);

        StartButton.SetActive(false);
        Hide1.SetActive(true);
        Next1.SetActive(true);
        Previous1.SetActive(false);
    }
コード例 #10
0
        public ActionResult RestoreStep3()
        {
            bool  initialized = PrepareStep3Session();
            Step3 step3       = new Step3();

            step3.name_of_test = Session["name_of_test"].ToString();
            step3.country      = Session["country"].ToString();


            if (Session["application_id"] != null)
            {
                step3.application_id = Session["application_id"].ToString();
            }
            else
            {
                step3.application_id = "";
            }
            return(Json(new { step3, data_present = initialized }, JsonRequestBehavior.AllowGet));
        }
コード例 #11
0
        /// <summary>
        ///     根据流程实际进度做界面显示(去除Step值判断)
        /// </summary>
        private void InitStepOn()
        {
            List <TaskEntity> list    = EDoc2ProcessManager.GetTaskData(IncidentId);
            TaskEntity        endItem = list.FirstOrDefault(i => i.Status == "已完成" && i.StepName == "结束");

            if (endItem != null)
            {
                Page.Title = FaProcessSteppService.GetStepText(FaProcessStepEnum.Complete);
                Step2.AddCssClass("on");
                return;
            }
            TaskEntity cItem = list.FirstOrDefault(i => i.Status == "激活");

            if (cItem != null)
            {
                FaProcessStepEnum stepEnum = FaProcessSteppService.GetStepVal(cItem.StepName);
                switch (stepEnum)
                {
                case FaProcessStepEnum.Start:
                    Step0.AddCssClass("on");
                    break;

                case FaProcessStepEnum.FaLeader:
                    Step1.AddCssClass("on");
                    break;

                case FaProcessStepEnum.FaDirector:
                    Step2.AddCssClass("on");
                    break;

                case FaProcessStepEnum.Complete:
                    Step3.AddCssClass("on");
                    break;
                }
                Page.Title = FaProcessSteppService.GetStepText(stepEnum);
            }
            else
            {
                Page.Title = FaProcessSteppService.GetStepText(FaProcessStepEnum.Start);
                Step0.AddCssClass("on");
            }
        }
コード例 #12
0
ファイル: formingShape.cs プロジェクト: 13641912981/SidIDE
        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (tabControl1.SelectedIndex)
            {
            //case 0:
            //    Page = 1;
            //    Back.Visible = false;
            //    Step1.Focus();
            //    break;
            case 0:
                Page         = 2;
                Back.Visible = true;
                Step2.Focus();
                //清空所有控件
                break;

            case 1:
                //MessageBox.Show(Application.StartupPath + @"\pic\formingShape\" + Step2select + ".JPG");
                if (string.IsNullOrEmpty(Step2select))
                {
                    tabControl1.SelectedTab = Step2;
                    MessageBox.Show("Error:Step2未选择!");
                    Step2.Focus();
                    return;
                }

                //_X0 = ComTransFrom._F(X0.Text);
                //_Y0 = ComTransFrom._F(Y0.Text);
                //_Z0 = ComTransFrom._F(Z0.Text);

                step3Pic.Image = Image.FromFile(Application.StartupPath + @"\pic\formingShape\" + Step2select + ".JPG");

                Page         = 3;
                Back.Visible = true;
                this.step3Pic.Controls.Clear();
                step3();
                addtextbox();
                Step3.Focus();
                break;
            }
            //MessageBox.Show(Page.ToString());
        }
コード例 #13
0
        void NextStep()
        {
            next.IsEnabled = false;
            ++currentStep;

            switch (currentStep)
            {
            case 0:
                pageTransition.TransitionType = Transitions.PageTransitionType.GrowAndFade;
                var step0 = new Step0();
                next.IsEnabled = true;
                pageTransition.ShowPage(step0);
                break;

            case 1:
                pageTransition.TransitionType = Transitions.PageTransitionType.SlideAndFade;
                var step1 = new Step1();
                step1.Success += OnSuccess;
                pageTransition.ShowPage(step1);
                break;

            case 2:
                var step2 = new Step2();
                step2.Success += OnSuccess;
                pageTransition.ShowPage(step2);
                break;

            case 3:
                Telestat.CancelGetDialogs();
                var step3 = new Step3();
                step3.Success += OnSuccess;
                step3.Failure += OnFailure;
                pageTransition.ShowPage(step3);
                break;

            case 4:
                var step4 = new Step4();
                pageTransition.ShowPage(step4);
                break;
            }
        }
コード例 #14
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         if (step == 1)
         {
             Step1.SetActive(false);
             Step2.SetActive(true);
         }
         if (step == 2)
         {
             Step2.SetActive(false);
             Step3.SetActive(true);
         }
         if (step == 3)
         {
             SceneManager.LoadScene(1);
         }
         step += 1;
     }
 }
コード例 #15
0
ファイル: Program.cs プロジェクト: wackoisgod/SharpLab
        private static void MainSafe(Arguments arguments)
        {
            var targetDirectoryPath = arguments.TargetDirectoryPath;

            IImmutableDictionary <AssemblyShortName, AssemblyDetails> mainAssemblies;
            IImmutableDictionary <AssemblyShortName, AssemblyDetails> usedRoslynAssemblies;
            IImmutableDictionary <AssemblyShortName, string>          roslynAssemblyPaths;
            IImmutableDictionary <AssemblyShortName, IImmutableSet <PackageInfo> > roslynPackageMap;
            IImmutableDictionary <AssemblyShortName, AssemblyDetails> othersReferencedByRoslyn;

            Step1.CollectMainAssemblies(arguments.SourceProjectAssemblyDirectoryPath, out mainAssemblies);
            Step2.CollectRoslynAssemblies(arguments.RoslynBinariesDirectoryPath, ref mainAssemblies, out usedRoslynAssemblies, out roslynAssemblyPaths);
            Step3.CollectRoslynPackageReferences(arguments.RoslynBinariesDirectoryPath, out roslynPackageMap);
            Step4.CollectRoslynReferences(ref usedRoslynAssemblies, roslynAssemblyPaths, ref mainAssemblies, roslynPackageMap, out othersReferencedByRoslyn);

            Step5.CleanTargetDirectory(arguments.TargetDirectoryPath);

            Step6.CopyAssembliesReferencedByRoslyn(othersReferencedByRoslyn, targetDirectoryPath);
            Step7.CopyRoslynAssemblies(usedRoslynAssemblies, targetDirectoryPath);
            Step8.RewriteAndCopyMainAssemblies(mainAssemblies, targetDirectoryPath, usedRoslynAssemblies);
            Step9.UpdateBindingRedirects(arguments.TargetApplicationConfigurationPath, othersReferencedByRoslyn.Values);
        }
コード例 #16
0
        [HttpPost] //payment
        public ActionResult Step4(RenderModel model, Step3 param)
        {
            var rto = new Step4Model(CurrentPage);

            DateTime pudate = _functional.ConvertDate(param.pickupdate);
            DateTime dfdate = _functional.ConvertDate(param.dropoffdate);
            DateTime putime = _functional.ConvertTime(param.pickuptime);
            DateTime dftime = _functional.ConvertTime(param.dropofftime);

            pudate = _functional.MergeDatetime(pudate, putime);
            dfdate = _functional.MergeDatetime(dfdate, dftime);

            int ndate = (dfdate - pudate).Days;
            int nhour = (dfdate - pudate).Hours;
            int nmin  = (dfdate - pudate).Minutes;

            if (nhour >= 4 && nmin > 1)
            {
                ndate += 1;
            }

            rto.NumDate       = ndate;
            rto.PickupBranch  = DatabaseContext.Database.Fetch <tb_branch>(string.Format("select * from tb_branch where A_ID = {0};", param.pickuploc)).FirstOrDefault();
            rto.DropoffBranch = DatabaseContext.Database.Fetch <tb_branch>(string.Format("select * from tb_branch where A_ID = {0};", param.dropoffloc)).FirstOrDefault();

            var sql = string.Format(@"Select t1.A_ID,Branch_ID,Car_ID,t2.*
                                    From tb_branch_car t1
                                    Inner join tb_car t2 on t1.Car_ID = t2.id
                                    Where t1.A_ID = {0};", param.car_id);

            rto.Car = new dto_carprice();

            rto.Car = DatabaseContext.Database.Fetch <dto_carprice>(sql).FirstOrDefault();

            rto.Car.price = new tb_car_price();

            rto.Car.price = _carService.GetCarPriceByid(param.price_id);

            rto.TotalCarPrice = (rto.Car?.price.price ?? 0) * rto.NumDate;

            var listextra = string.Join(",", param.extra ?? new int[] { 0 });

            rto.ExtraOption = DatabaseContext.Database.Fetch <tb_optional>(string.Format("select * from tb_optional where A_ID in ({0});", listextra));

            rto.TotalExtra = rto.ExtraOption.Sum(x => x.Price) * rto.NumDate;

            rto.TotalPrice = rto.TotalCarPrice + rto.TotalExtra;

            var transection = new tb_transection();

            transection.Customer_ID = GetMemberID(param.email[0]
                                                  , string.Format("{0} {1}", param.name[0], param.lname[0])
                                                  , param.title[0]
                                                  , param.name[0]
                                                  , param.lname[0]
                                                  , param.phone[0]
                                                  , param.license[0]
                                                  );

            if (param.diffpick == "1")
            {
                // transection.PickupCus_ID = GetMemberID(param.pemail, string.Format("{0} {1}", param.pname, param.plname));
            }

            transection.PickUpDatetime  = _functional.MergeDatetime(pudate, putime);
            transection.DropOffDatetime = _functional.MergeDatetime(dfdate, dftime);

            transection.Car_Branch_ID = rto.Car.A_ID;
            transection.Numdate       = rto.NumDate;
            transection.Status        = "P";
            transection.Price_ID      = rto.Car.price.price_id;

            //transectionid
            int      lastid = DatabaseContext.Database.ExecuteScalar <int>("select count(*) + 1 from tb_transection where  Convert(date, Add_Date) = Convert(date, getdate());");
            DateTime dt     = DateTime.Now;

            transection.Transection_ID = Convert.ToInt32(dt.ToString("yyMMdd") + lastid.ToString("0000"));

            rto.PickupBranch  = DatabaseContext.Database.Fetch <tb_branch>(string.Format("select * from tb_branch where A_ID = {0};", param.pickuploc)).FirstOrDefault();
            rto.DropoffBranch = DatabaseContext.Database.Fetch <tb_branch>(string.Format("select * from tb_branch where A_ID = {0};", param.dropoffloc)).FirstOrDefault();

            transection.PickUpLoc  = rto.PickupBranch.A_ID;
            transection.DropOffLoc = rto.DropoffBranch.A_ID;

            transection.Total_Price = rto.TotalPrice;

            var discounttype  = rto.Car.price.paynow_type;
            var discount      = rto.Car.price.paynow ?? 0;
            var totaldiscount = 0M;

            var sendemail = 0;

            if (param.pay == "now")
            {
                transection.Payment_Type = "N";
                if (discounttype == "percent")
                {
                    totaldiscount           = rto.TotalCarPrice * (discount / 100);
                    transection.Total_Price = rto.TotalPrice - totaldiscount;
                }
                else
                {
                    totaldiscount           = discount;
                    transection.Total_Price = rto.TotalPrice - discount;
                }
            }
            else
            {
                transection.Payment_Type = "L";
                sendemail = 1;
            }

            transection.Discount_Total = totaldiscount;

            transection.Sub_Total = transection.Total_Price / 1.07M;

            transection.Vat_Total = transection.Total_Price - transection.Sub_Total;

            DatabaseContext.Database.Save(transection);

            rto.Transection_ID = transection.ID;

            var transection_cus = new List <tb_transection_cus>();

            for (var i = 0; i < param.email.Length; i++)
            {
                var cus = new tb_transection_cus();
                cus.Transection = rto.Transection_ID;
                cus.User_ID     = GetMemberID(param.email[0]
                                              , string.Format("{0} {1}", param.name[i], param.lname[i])
                                              , param.title[i]
                                              , param.name[i]
                                              , param.lname[i]
                                              , param.phone[i]
                                              , param.license[i]
                                              );
                cus.Customer_Type = string.Format("Driver #{0}", i + 1);
                DatabaseContext.Database.Save(cus);
            }

            if (param.diffpick == "1")
            {
                var cus = new tb_transection_cus();
                cus.Transection   = rto.Transection_ID;
                cus.User_ID       = GetMemberID(param.pemail, string.Format("{0} {1}", param.pname, param.plname));
                cus.Customer_Type = string.Format("Pick car");
                DatabaseContext.Database.Save(cus);
            }

            foreach (var item in rto.ExtraOption)
            {
                var detail = new tb_transection_detail();
                detail.Transection = rto.Transection_ID;
                detail.Item_ID     = item.A_ID;
                detail.Item_Price  = item.Price;
                detail.Total       = item.Price * rto.NumDate;
                detail.Vat_Total   = Math.Round(detail.Total * 0.07M, 2);
                detail.Sub_Total   = detail.Total - detail.Vat_Total;
                detail.Item_Type   = "E";
                DatabaseContext.Database.Save(detail);
            }

            return(Redirect("/booking/Result/" + rto.Transection_ID + "?sendmail=" + sendemail));
        }
コード例 #17
0
 public ActionResult Step3(Step3 step3)
 {
     return View();            
 }
コード例 #18
0
        public string ToFOnlineString(bool verbose = false)
        {
            string result = "";

            List <string> args = new List <string>();

            var sbool = new Func <bool, string>(b =>
            {
                return(b ? "1" : "0");
            });

            var anim = new Func <string, string>(name =>
            {
                return(this[name] != null ? "1" : "0");
            });

            var animGroup = new Func <char, string>(name =>
            {
                return(this[name] != null ? "1" : "0");
            });

            // cvet plz, no format changes ;_;

            args.Add((Enabled ? "@" : "#"));
            args.Add(ID.ToString());
            args.Add(Name.ToLower());
            args.Add(Alias.ToString());
            args.Add(Multihex.ToString());
            args.Add("0");        // Type
            args.Add(anim("AB")); // Walk
            args.Add(anim("AT")); // Run
            args.Add(sbool(Aim));
            args.Add(sbool(Armor));
            args.Add(sbool(Rotate));
            args.Add(animGroup('A'));
            args.Add(animGroup('B'));
            args.Add(animGroup('C'));
            args.Add(animGroup('D'));
            args.Add(animGroup('E'));
            args.Add(animGroup('F'));
            args.Add(animGroup('G'));
            args.Add(animGroup('H'));
            args.Add(animGroup('I'));
            args.Add(animGroup('J'));
            args.Add(anim("KJ"));     // K
            args.Add(animGroup('L'));
            args.Add(anim("KL"));     // M
            args.Add(animGroup('N'));
            args.Add(animGroup('J')); // O
            args.Add(animGroup('P'));
            args.Add(animGroup('Q'));
            args.Add(animGroup('R'));
            args.Add(animGroup('S'));
            args.Add(animGroup('T'));
            args.Add(animGroup('U'));
            args.Add(animGroup('V'));
            args.Add(animGroup('W'));
            args.Add(animGroup('X'));
            args.Add(animGroup('Y'));
            args.Add(animGroup('Z'));
            args.Add(Walk.ToString());
            args.Add(Run.ToString());
            args.Add(Step1.ToString());
            args.Add(Step2.ToString());
            args.Add(Step3.ToString());
            args.Add(Step4.ToString());
            args.Add((Sound.Length == 0 ? "-" : Sound));
            args.Add((Comment.Length > 0) ? " # " + Comment : "");

            if (!verbose)
            {
                bool first = true;
                foreach (string str in args)
                {
                    if (first)
                    {
                        first = false;
                    }
                    else
                    {
                        result += " ";
                    }

                    result += str;
                }
            }
            else
            {
                int len = 5;
                if (Name.Length > len - 1)
                {
                    len = Name.Length + 1;
                }
                args.Insert(0, "Name");
                string format =
                    "# ID  {0," + -len + "}Alias MH Type Walk Run Aim Armor Rotate  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z  Walk Run Walk steps Sound"
                    + Environment.NewLine
                    + "{1,-2}{2,-4}{3," + -len + "}{4,-6}{5,-3}{6,-5}{7,-5}{8,-4}{9,-4}{10,-6}{11,-8}";

                // A-Z
                for (int a = 12; a <= 37; a++)
                {
                    format += "{" + a + ",-2}";
                }

                // walk, run
                format += " {38,-5}{39,-4}";

                // walk steps
                for (int s = 40; s <= 43; s++)
                {
                    format += "{" + s + ",-3}";
                }

                format += "{44}{45}";

                result += string.Format(format, args.ToArray());
            }

            return(result);
        }
コード例 #19
0
ファイル: Show_PicL3.cs プロジェクト: s885219s/Mikro
 void FixedUpdate()
 {
     if (loop >= 0 && loop < 1)
     {
         if (printcount % 11 == 0)
         {
             Step1.SetActive(true);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 1)
         {
             Step1.SetActive(false);
             Step2.SetActive(true);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 2)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(true);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 3)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(true);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 4)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(true);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 5)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(true);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 6)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(true);
             Step8.SetActive(false);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 7)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(true);
             Step9.SetActive(false);
         }
         else if (printcount % 11 == 8)
         {
             Step1.SetActive(false);
             Step2.SetActive(false);
             Step3.SetActive(false);
             Step4.SetActive(false);
             Step5.SetActive(false);
             Step6.SetActive(false);
             Step7.SetActive(false);
             Step8.SetActive(false);
             Step9.SetActive(true);
             loop++;
         }
         printcount++;
     }
     if (loop == 1)
     {
         SceneManager.LoadScene("Game3", LoadSceneMode.Single);
     }
 }
コード例 #20
0
 public Answer3(Step3 next, object finalAnswer)
 {
     this.Next        = next;
     this.Unload      = null;
     this.FinalAnswer = finalAnswer;
 }
コード例 #21
0
ファイル: Program.cs プロジェクト: NotJRM/jrm-code-project
 public Answer3(Step3 next, object finalAnswer)
 {
     this.Next = next;
     this.Unload = null;
     this.FinalAnswer = finalAnswer;
 }