private void Awake() { agentRef = FindObjectOfType <BilliardAgent>(); gameSystemRef = FindObjectOfType <BilliardGameSystem>(); heatmapRef = FindObjectOfType <HeatMap>(); trainerRef = FindObjectOfType <TrainerMimic>(); agentDecisionRef = agentRef.GetComponent <DecisionMAES>(); }
private void Awake() { agentRef = FindObjectOfType <BilliardAgent>(); gameSystemRef = FindObjectOfType <BilliardGameSystem>(); heatmapRef = FindObjectOfType <HeatMap>(); trainerRef = FindObjectOfType <TrainerMimic>(); agentDecisionRef = agentRef.GetComponent <DecisionMAES>(); if (agentDecisionRef && agentDecisionRef.GetComponent <ESOptimizer>()) { defaultMAESInitStep = agentDecisionRef.GetComponent <ESOptimizer>().initialStepSize; } }