You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CozmoAcademy.cs 593B

1234567891011121314151617181920212223242526
  1. using MLAgents;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. public class CozmoAcademy : Academy
  6. {
  7. public GameObject cozmo;
  8. public Transform startPoint;
  9. //public bool testAcademyReset = false;
  10. public override void AcademyReset()
  11. {
  12. cozmo.transform.position = startPoint.position;
  13. cozmo.transform.rotation = startPoint.rotation;
  14. }
  15. //private void Update()
  16. //{
  17. // if (testAcademyReset)
  18. // {
  19. // AcademyReset();
  20. // testAcademyReset = !testAcademyReset;
  21. // }
  22. //}
  23. }