public Actions PlayerGreenRunStep(States states) { switch (player_type_green) { case 0: return(random_player_green.RunStep(states)); case 1: return(human_player_green.RunStep(states)); case 2: return(hand_coded_player_green.RunStep(states)); case 3: return(agent_player1_green.RunStep(states)); case 4: return(agent_player2_green.RunStep(states)); default: Debug.LogError("Player green type settings are illegal.", transform); return(new Actions()); } }
private Actions PlayerRedRunStep(States states) { switch (player_type_red) { case 0: return(random_player_red.RunStep(states)); case 1: return(human_player_red.RunStep(states)); case 2: return(hand_coded_player_red.RunStep(states)); case 3: return(agent_player1_red.RunStep(states)); case 4: return(agent_player2_red.RunStep(states)); default: Debug.LogError("Player red type settings are illegal.", transform); return(new Actions()); } }