Esempio n. 1
0
    void Start()
    {
        if (_instance != null)
        {
            Debug.LogError("There should not be two map controllers");
        }
        _instance = this;

        plannedObjects         = new Dictionary <Tile, GameObject> ();
        installedObjects       = new Dictionary <Tile, GameObject> ();
        looseObjects           = new Dictionary <Tile, GameObject> ();
        extraGraphicalElements = new Dictionary <Tile, GameObject> ();

        InitMap();

        TileTypeHolder.Init();
        LooseObjectFactory.Init();

        //This order is important!!!
        JobList.Init();
        InstalledObjectHolder.Init();

        BuildMapTileType();

        ExtraGraphicalElementHolder.Init();
    }
Esempio n. 2
0
    void Start()
    {
        if (_instance != null)
        {
            Debug.LogError("There should not be two job controllers");
        }
        _instance = this;

        currentJobs = new Dictionary <Tile, Job> ();

        LooseObjectFactory.CreateLooseObject(0, MapController.Instance.GetTileAtWorldPos(15, 15));
    }