|
|
|
|
|
|
private Agent recordingAgent; |
|
|
|
private string filePath; |
|
|
|
private DemonstrationStore demoStore; |
|
|
|
public const int MAX_NAME_LENGTH = 16; |
|
|
|
public const int MaxNameLength = 16; |
|
|
|
|
|
|
|
private void Start() |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
recordingAgent = GetComponent<Agent>(); |
|
|
|
demoStore = new DemonstrationStore(); |
|
|
|
demonstrationName = SanitizeName(demonstrationName); |
|
|
|
demonstrationName = SanitizeName(demonstrationName, MaxNameLength); |
|
|
|
demoStore.Initialize( |
|
|
|
demonstrationName, |
|
|
|
recordingAgent.brain.brainParameters, |
|
|
|