Пример #1
0
    void ClearPath()
    {
        var walls  = TilemapHelper.GetWallsTilemap();
        var posInt = HushPuppy.GetVecAsTileVec(this.transform.position);

        var tile = walls.GetTile(posInt);

        if (tile != null)
        {
            var sprite = ((Tile)tile).sprite;
            fakeWall.sprite = sprite;
            walls.SetTile(posInt, null);
        }
    }
Пример #2
0
 void Start()
 {
     this.tilemaps = new List <Tilemap>(FindObjectsOfType <Tilemap>());
     this.walls    = TilemapHelper.GetWallsTilemap();
 }
Пример #3
0
 void Start()
 {
     rb         = this.GetComponent <Rigidbody2D>();
     this.walls = TilemapHelper.GetWallsTilemap();
 }