public SideInfo GetYellowSide() { SideInfo rv = new SideInfo { currentBall = CurrentBall, whosBall = WhosBall, gameState = GameState }; for (int i = 0; i < 5; i++) { rv.home[i] = YellowRobot[i]; rv.opp[i] = new OpponentRobot { pos = BlueRobot[i].pos, rotation = BlueRobot[i].rotation }; } // 转换坐标 if (GeneralConfig.EnableConvertYellowData) { rv.ConvertToOtherSide(); } return(rv); }