public override void InitializeAgent() { ID = gameObject.GetInstanceID(); Stats = new AgentStats(agentTeam.transform.name); ball.AutoKickEventHandler += OnAutoKick; ball.PlayerContactEventHandler += OnPlayerContact; ball.GoalEventHandler += OnGoal; useShotReward = shotRewardMultiplier > 0; useSpinPenalty = maxSpinPenalty > 0; }
string TeamGoals(AgentStats stats) { return(string.Format("{0} {1}", stats.Name.ToUpper(), stats.GoalsScored)); }