Exemplo n.º 1
0
 //for initialization
 void Start()
 {
     targetpos_object  = GameObject.Find("target");
     targetpos_script  = targetpos_object.GetComponent <TargetPos>();
     targetpos2_object = GameObject.Find("target2");
     targetpos2_script = targetpos2_object.GetComponent <TargetPos2>();
     root2_object      = GameObject.Find("root2");
     root2_script      = root2_object.GetComponent <root2>();
     Floor_object      = GameObject.Find("floor1");
     Floor_script      = Floor_object.GetComponent <Floor>();
     Goal_object       = GameObject.Find("goal");
     Goal_script       = Goal_object.GetComponent <Goal>();
     cube_object       = GameObject.Find("Cube");
     cube_script       = cube_object.GetComponent <cube>();
     x = 10;
 }
Exemplo n.º 2
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');
 }