Download data/Assets/Scripts/Learning/InEpisodeLogger.cs from introvoyz042/CRESSim: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Learning/InEpisodeLogger.cs
- Command line
-
hf download hf://datasets/introvoyz042/CRESSim/data/Assets/Scripts/Learning/InEpisodeLogger.cs
-
curl -L -o InEpisodeLogger.cs https://huggingface.co/datasets/introvoyz042/CRESSim/resolve/main/data/Assets/Scripts/Learning/InEpisodeLogger.cs
396 Bytes
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class InEpisodeLogger : MonoBehaviour | |
| { | |
| void FixedUpdate() | |
| { | |
| if (m_agent.InEpisode) | |
| { | |
| Debug.Log("In episode"); | |
| } | |
| else | |
| { | |
| Debug.Log("Not in episode"); | |
| } | |
| } | |
| [] | |
| private SuctionIrrigationAgentBase m_agent; | |
| } | |