//创建门将教练 public void createGKCoach(IGameInfo gameInfo, FBTeam team, Workspace workspace, string btName) { var gkCoach = new FBGKCoachAgent(gameInfo, this, team, workspace); gkCoach.setBehaviour(btName); switch (team) { case FBTeam.kBlue: blueGKCoach = gkCoach; break; case FBTeam.kRed: redGKCoach = gkCoach; break; } }
public void clear() { Debuger.Log("World clear"); m_actors.Clear(); m_mainExtent = FixVector2.kZero; m_doorExtent = FixVector2.kZero; m_doorHeight = Fix64.Zero; config = null; redCoach = null; blueCoach = null; redGKCoach = null; blueGKCoach = null; m_arena = null; m_world = null; m_ball = null; }