Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        districtSpriteIndex = 0;
        pseudomain          = GameObject.Find("PseudoMain").GetComponent <PseudoMain>();
        MyMap    = this.gameObject.GetComponentInChildren <Tilemap>();
        lastTile = null;
        lastPos  = new Vector3Int(-1, -1, -1);

        for (int i = 0; i < MapHeight; i++)
        {
            for (int j = 0; j < MapWidth; j++)
            {
                MyMap.SetTile(new Vector3Int(j, i, 0), tileSprite);
            }
        }
    }
Example #2
0
    // Start is called before the first frame update

    void Start()
    {
        pseudoMain = GameObject.Find("PseudoMain").GetComponent <PseudoMain>();
        districtPanelController = DistrictPanel.GetComponent <DistrictPanelController>();
    }