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.

HallwayAcademy.cs 663B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using MLAgents;
  5. public class HallwayAcademy : Academy {
  6. public float agentRunSpeed;
  7. public float agentRotationSpeed;
  8. public Material goalScoredMaterial; // when a goal is scored the ground will use this material for a few seconds.
  9. public Material failMaterial; // when fail, the ground will use this material for a few seconds.
  10. public float gravityMultiplier; // use ~3 to make things less floaty
  11. public override void InitializeAcademy()
  12. {
  13. Physics.gravity *= gravityMultiplier;
  14. }
  15. public override void AcademyReset()
  16. {
  17. }
  18. }