Beispiel #1
0
    private void Die()
    {
        Vector3Int position = GetCurrentGridPosition();

        _grid.AccessGridTile(position.x, position.z).NourishGrass();

        Script_Tile currentlyOccupiedTile = _grid.AccessGridTile(_occupiedLocation.x, _occupiedLocation.z);

        currentlyOccupiedTile.SetOccupiedBySheep(false);

        _grid.DestroySheep(this, _material);
        _sheepObject = null;
    }