Exemplo n.º 1
0
 public void MakeObjectFromLog(Log _l)
 {
     if (_l.ObjectType == "Point")
     {
         Point pt = Util.AddPoint(_l.Vec, _l.Id);//AddPointの中でLogを作り直しているので、そもそもこれがどういう行為かはっきりしない。
         pt.PointName = _l.PName;
         pt.PTobject.GetComponent <TextMesh>().text = pt.PointName;
     }
     else if (_l.ObjectType == "Line")
     {
         Util.AddLine(_l.Object1Id, _l.Object2Id, _l.Id);
     }
     else if (_l.ObjectType == "Circle")
     {
         Util.AddCircle(_l.Object1Id, _l.Radius, _l.Id);
     }
     else if (_l.ObjectType == "Module")
     {
         Module MD = Util.AddModule(_l.ModuleType, _l.Object1Id, _l.Object2Id, _l.Object3Id, _l.Id);
         if (_l.ModuleType == MENU.LINES_PERPENDICULAR)
         {
             Util.AddAngleMark(_l.Object1Id, _l.Object2Id, MD.gameObject);
         }
         else if (_l.ModuleType == MENU.ANGLE)
         {
             Util.AddAngleMark(_l.Object1Id, _l.Object2Id, _l.Object3Id, MD.gameObject);
         }
     }
 }