您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
27 行
419 B
27 行
419 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using MLAgents;
|
|
|
|
public class BouncerAcademy : Academy {
|
|
|
|
public float gravityMultiplier = 1f;
|
|
|
|
public override void InitializeAcademy()
|
|
{
|
|
Physics.gravity = new Vector3(0,-9.8f*gravityMultiplier,0);
|
|
}
|
|
|
|
public override void AcademyReset()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
public override void AcademyStep()
|
|
{
|
|
|
|
|
|
}
|
|
|
|
}
|