예제 #1
0
        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;
        }
예제 #2
0
 string TeamGoals(AgentStats stats)
 {
     return(string.Format("{0} {1}", stats.Name.ToUpper(), stats.GoalsScored));
 }