public override void OnInspectorGUI() { GeneticMixer mixer = (GeneticMixer)target; mixer.generationSize = EditorGUILayout.IntSlider("Generation Size", mixer.generationSize, 1, 30); mixer.mutationRate = EditorGUILayout.Slider("Mutation Rate", mixer.mutationRate, 0, 1.0f); mixer.mutationOptions = (MutationOptions)EditorGUILayout.EnumPopup(mixer.mutationOptions); mixer.noRegression = EditorGUILayout.Toggle("No Regression", mixer.noRegression); }
bool FindAttachedMixer(GameObject target) { mixer = target.GetComponent <GeneticMixer>(); if (mixer != null) { return(true); } Debug.Log("mixer not found"); return(false); }
public bool ConnectWithController(NeuralController controller, out GeneticMixer mixer) { this.controller = controller; mixer = this; return(true); }