private void InitBlueprint() { List <Vector3[]> points = polygons.GetPolygonPoints(); bluePrint = BluePrint.GetBluePrint(points); bluePrint.transform.SetParent(gameObject.transform); bluePrint.gameObject.SetActive(false); }
public static BluePrint GetBluePrint(List <Vector3[]> polygons) { GameObject go = Instantiate(PrefabManager.instance.Blueprint); go.name = "Blueprint"; BluePrint bp = go.GetComponent <BluePrint> (); bp.Init(); bp.Draw(polygons); return(bp); }