protected override string Serialize()
        {
            var result = new StringBuilder();

            result.AppendLine(base.Serialize());
            result.AppendLine(@"<SlideHeader>" + SlideHeader.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</SlideHeader>");
            result.AppendLine(@"<Goal1>" + Goal1.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal1>");
            result.AppendLine(@"<Goal2>" + Goal2.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal2>");
            result.AppendLine(@"<Goal3>" + Goal3.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal3>");
            result.AppendLine(@"<Goal4>" + Goal4.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal4>");
            result.AppendLine(@"<Goal5>" + Goal5.Replace(@"&", "&#38;").Replace("\"", "&quot;") + @"</Goal5>");
            return(result.ToString());
        }
Esempio n. 2
0
 void Start()
 {
     root2_object = GameObject.Find("root2");
     root2_script = root2_object.GetComponent <root2>();
     root1_object = GameObject.Find("root1");
     root1_script = root1_object.GetComponent <root1>();
     Floor_object = GameObject.Find("floor1");
     Floor_script = Floor_object.GetComponent <Floor>();
     cube_object  = GameObject.Find("Cube");
     cube_script  = cube_object.GetComponent <cube>();
     goal_object  = GameObject.Find("goal");
     goal_script  = goal_object.GetComponent <Goal>();
     goal2_object = GameObject.Find("goal2");
     goal2_script = goal2_object.GetComponent <Goal2>();
     goal3_object = GameObject.Find("goal3");
     goal3_script = goal3_object.GetComponent <Goal3>();
 }
Esempio n. 3
0
 void Start()
 {
     targetpos_object  = GameObject.Find("target");
     targetpos_script  = targetpos_object.GetComponent <TargetPos>();
     targetpos2_object = GameObject.Find("target2");
     targetpos2_script = targetpos2_object.GetComponent <TargetPos2>();
     targetpos3_object = GameObject.Find("target3");
     targetpos3_script = targetpos3_object.GetComponent <TargetPos3>();
     root1_object      = GameObject.Find("root1");
     root1_script      = root1_object.GetComponent <root1>();
     root2_object      = GameObject.Find("root2");
     root2_script      = root2_object.GetComponent <root2>();
     goal_object       = GameObject.Find("goal");
     goal_script       = goal_object.GetComponent <Goal>();
     goal2_object      = GameObject.Find("goal2");
     goal2_script      = goal2_object.GetComponent <Goal2>();
     goal3_object      = GameObject.Find("goal3");
     goal3_script      = goal3_object.GetComponent <Goal3>();
     hanoi(3, 'A', 'B', 'C');
 }
Esempio n. 4
0
    void Start()
    {
        root2_object = GameObject.Find("root2");
        root2_script = root2_object.GetComponent <root2>();
        root1_object = GameObject.Find("root1");
        root1_script = root1_object.GetComponent <root1>();
        Floor_object = GameObject.Find("floor1");
        Floor_script = Floor_object.GetComponent <Floor>();
        cube_object  = GameObject.Find("Cube");
        cube_script  = cube_object.GetComponent <cube>();
        goal_object  = GameObject.Find("goal");
        goal_script  = goal_object.GetComponent <Goal>();
        goal2_object = GameObject.Find("goal2");
        goal2_script = goal2_object.GetComponent <Goal2>();
        goal3_object = GameObject.Find("goal3");
        goal3_script = goal3_object.GetComponent <Goal3>();
        Vector3 pos = transform.position;

        pos.x = slider.sld_x1;
        pos.z = slider.sld_y1;
        transform.position = pos;
    }