Ejemplo n.º 1
0
    private void Init()
    {
        if (!isInit)
        {
            isInit = true;
            if (ConstantManager.GetInstance() != null)
            {
                width  = ConstantManager.GetWidthMap();
                height = ConstantManager.GetHeightMap();
            }
            else
            {
                width  = CONST_WIDTH;
                height = CONST_HEIGHT;
            }

/*#if UNITY_EDITOR
 *          width = 6;
 *          height = 7;
 #endif*/
            offSet          = Mathf.RoundToInt(height / 2f);
            allCreatedNodes = new GameObject[width, height];

            //Setup Background
            UpdateSizeBackground();
        }
    }