public MapFinale(ConfigurationGame _conf)
        {
            InitializeComponent();
            time = DateTime.Now;
            conf = _conf;
            switch (conf.Plateau.mytype)
            {
            case MapType.portoloin:
                design = new MapDesign(Properties.Resources.chaussure, Properties.Resources.sol,
                                       Properties.Resources.saule_cogneur, Properties.Resources.bourse);
                break;

            case MapType.labyrinthe:
                design = new MapDesign(Properties.Resources.saule_cogneur, Properties.Resources.sol,
                                       Properties.Resources.cailloux, Properties.Resources.bourse);
                break;

            case MapType.standard:
                design = new MapDesign(Properties.Resources.saule_cogneur, Properties.Resources.sol,
                                       Properties.Resources.cailloux, Properties.Resources.bourse);
                break;
            }

            maSimulation = new GameSimulation(conf, WriteLog);

            UpdateMapLayout();
        }
Example #2
0
    // Use this for initialization
    void Start()
    {
        uiGrid.enabled = true; //Active true
        mapDesign      = new MapDesign();
        Debug.Log("MapSetting Start!");

        if (gameObject.name.Equals("Map4x4"))
        {
            Debug.Log("Map4x4 ");
            mapDesign.mapSizeState = MapDesign.MapSizeState.size4x4;
        }
        if (gameObject.name.Equals("Map5x5"))
        {
            Debug.Log("Map5x5 ");
            mapDesign.mapSizeState = MapDesign.MapSizeState.size5x5;
        }
        if (gameObject.name.Equals("Map6x6"))
        {
            Debug.Log("Map5x5 ");
            mapDesign.mapSizeState = MapDesign.MapSizeState.size6x6;
        }
        MakeMapImage();
    }