Beispiel #1
0
    void Start()
    {
        world       = GameObject.Find("GameController").GetComponent <WS_World>();
        tilePanel   = transform.Find("TilePanel").gameObject;
        entityPanel = GameObject.Find("EntityPanel").gameObject;

        townName   = tilePanel.transform.Find("TownNameText").GetComponent <Text>();
        biomeImage = tilePanel.transform.Find("BiomeImage").GetComponent <Image>();
        tilePanel.SetActive(false);
        entityPanel.SetActive(false);
    }
    public List <WS_Tile> neighbors_3 = new List <WS_Tile>(); // neighboring tiles in radius 3



    public void setWorld(WS_World _world)      // set the world pointer
    {
        world = _world;
    }