public void UFOFly(GameObject disk, float angle, float power, bool go, bool flag) //flag == true 物理学, flag == false 运动学 { if (flag) { phy_action_manager.UFOfly(disk, angle, power, go); //如果是物理学,调用PhysicsFlyActionManager类的UFOfly } else { action_manager.UFOfly(disk, angle, power, go); //如果是运动学,调用FlyActionManager类的UFOfly } }
public void UFOFly(GameObject disk, float angle, float power, bool flag) { if (flag) { phy_action_manager.UFOfly(disk, angle, power); } else { action_manager.UFOfly(disk, angle, power); } }