Example #1
0
        private void InitBlueprint()
        {
            List <Vector3[]> points = polygons.GetPolygonPoints();

            bluePrint = BluePrint.GetBluePrint(points);
            bluePrint.transform.SetParent(gameObject.transform);
            bluePrint.gameObject.SetActive(false);
        }
Example #2
0
        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);
        }