public void TakeAwayPoints() { AddReward(-0.01f); targetMoving.ResetTarget(); UpadteStats(); EndEpisode(); StartCoroutine(SwapMaterial(failMaterial, 0.5f)); }
public override void OnEpisodeBegin() { transform.localPosition = idlePosition; moveTo = prevPosition = idlePosition; TargetMoving.ResetTarget(); }