Example #1
0
    public void TakeAwayPoints()
    {
        AddReward(-0.01f);
        targetMoving.ResetTarget();

        UpadteStats();

        EndEpisode();
        StartCoroutine(SwapMaterial(failMaterial, 0.5f));
    }
Example #2
0
 public override void OnEpisodeBegin()
 {
     transform.localPosition = idlePosition;
     moveTo = prevPosition = idlePosition;
     TargetMoving.ResetTarget();
 }