Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        vertexPrefab.CreatePool();
        edgePrefab.CreatePool();

        Polygon poly = new Polygon();

        poly.SetVertices(2);

        polygon = poly;
        SpawnPoints();

        _InputManager.Instance.Init();
    }
    void Start()
    {
        vertexPrefab.CreatePool();
        blockPrefab.CreatePool();

        _lazyAllVertices = new Lazy <List <Vector2> >(GetAllVertices);

        Shape = new Shape2D();
        CalcInitialVertices();

        /*Polygon poly = new Polygon();
         * poly.SetVertices(2);*/

        //polygon = poly;
        InitialPoints();

        _InputManager.Instance.Init();
    }