示例#1
0
 public void AssignId(GeneratedObject generatedObject, ObjectT objectT)
 {
     if (objectT.typ.Equals(GenObjectType.Drag))
     {
         if (objectT.prefabTyp.Equals(PrefabType.Tvar))
         {
             generatedObject.objectName = "Tvar " + objectContextID;
             generatedObject.GetComponent <DragDrop>().contextID = objectContextID;
             objectContextID++;
         }
         if (objectT.prefabTyp.Equals(PrefabType.Basic))
         {
             generatedObject.objectName = "Obraz " + objectContextID;
             generatedObject.GetComponent <DragDrop>().contextID = objectContextID;
             objectContextID++;
         }
     }
 }