2019-04-10 13:39:36 +02:00
|
|
|
|
using MLAgents;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class CozmoAcademy : Academy
|
|
|
|
|
{
|
2019-05-17 19:12:07 +02:00
|
|
|
|
public GameObject cozmo;
|
|
|
|
|
public Transform startPoint;
|
|
|
|
|
//public bool testAcademyReset = false;
|
|
|
|
|
|
|
|
|
|
public override void AcademyReset()
|
|
|
|
|
{
|
|
|
|
|
cozmo.transform.position = startPoint.position;
|
2019-05-23 15:28:26 +02:00
|
|
|
|
cozmo.transform.rotation = startPoint.rotation;
|
2019-05-17 19:12:07 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//private void Update()
|
|
|
|
|
//{
|
|
|
|
|
// if (testAcademyReset)
|
|
|
|
|
// {
|
|
|
|
|
// AcademyReset();
|
|
|
|
|
// testAcademyReset = !testAcademyReset;
|
|
|
|
|
// }
|
|
|
|
|
//}
|
2019-04-10 13:39:36 +02:00
|
|
|
|
}
|