using System.Collections; using System.Collections.Generic; using UnityEngine; public class Ball3DDecision : MonoBehaviour, Decision { public float[] Decide(List state, List observation, float reward, bool done, float[] memory) { if (gameObject.GetComponent().brainParameters.actionSpaceType == StateType.continuous) { return new float[4]{ 0f, 0f, 0f, 0.0f }; } else { return new float[1]{ 1f }; } } public float[] MakeMemory(List state, List observation, float reward, bool done, float[] memory) { return new float[0]; } }