Exemplo n.º 1
0
 public void auto_setting()
 {
     if (obj_mkr.goal_num > 1)
     {
         Vector3 temp = obj_mkr.crated_obj [1].transform.position + new Vector3(0.0f, -0.2f, 0.0f);
         obj_mkr.goal_anchors [1] = temp;
         obj_mkr.CreateObj(temp + new Vector3(1.0f, 0.0f, 25.0f));
         obj_mkr.CreateObj(temp + new Vector3(-10.0f, 0.0f, 25.0f));
         obj_mkr.CreateObj(temp + new Vector3(-10.0f, 0.0f, 1.0f));
         obj_mkr.CreateObj(temp + new Vector3(1.0f, 0.0f, 1.0f));
     }
 }
Exemplo n.º 2
0
 void Start()
 {
     canvas_anchor_setting = GameObject.Find("AnchorSetting").GetComponent <Canvas> ();
     canvas_can_go_walk    = GameObject.Find("CanGoWalk").GetComponent <Canvas> ();
     obj_mkr         = GameObject.Find("ObjectMaker").GetComponent <ObjectMaker>();
     obj_mkr.obj_num = 1;
     obj_mkr.CreateObj(new Vector3(0f, 3f, 0f));
 }