Пример #1
0
    public override void Spawn(MapContainer map, MapTile tile)
    {
        mapContainer       = map;
        posx               = tile.posx;
        posy               = tile.posy;
        currentTile        = mapContainer.GetTile(posx, posy);
        transform.position = currentTile.transform.position;

        tile.currentCharacter = this;
    }