Esempio n. 1
0
    public override void PlaceGround(IBaseBackgroundType groundType, TileConnectionScoreInfo connectionScoreInfo)
    {
        GameObject         groundGO           = GameObject.Instantiate(MazeLevelGameplayManager.Instance.GetTileBackgroundPrefab <MazeTileBaseGround>(), Tile.BackgroundsContainer);
        MazeTileBaseGround mazeTileBaseGround = groundGO.GetComponent <MazeTileBaseGround>();

        mazeTileBaseGround.WithType(groundType);
        mazeTileBaseGround.WithConnectionScoreInfo(connectionScoreInfo);
        mazeTileBaseGround.SetTile(Tile);

        Tile.AddBackground(mazeTileBaseGround);
    }