Skip to content

Instantly share code, notes, and snippets.

View ArztSamuel's full-sized avatar

Samuel Arzt ArztSamuel

View GitHub Profile
@ArztSamuel
ArztSamuel / ParkingCarAgent.cs
Last active May 19, 2022 08:43
Most important parts of the Agent code used for the project of https://youtu.be/VMp6pq6_QjI
public class ParkingCarAgent : Agent
{
[SerializeField]
private Transform TargetParkingSpot;
[SerializeField]
// = Reward every 'interval' units getting closer
private float DistanceRewardInterval = 3f;
// Thresholds defining when the task is complete
@ArztSamuel
ArztSamuel / PostProcessAssets.cs
Last active June 8, 2020 23:26
Using Roslyn Analyzers in combination with Unity
// Put this file inside Assets/Editor/
// This script generates the appropriate .csproj and csc.rsp files in order to
// also include your Roslyn Analyzers in the Visual Studio Project
using System.IO;
using System.Text;
using UnityEditor;
using UnityEngine;