public static GotoTianzhufengRobot GetInstance() { if (Instance == null) { Instance = new GotoTianzhufengRobot(); } return(Instance); }
private RobotManager() { FindPath = FindPathRobot.GetInstance(); GotoTianzhufeng = GotoTianzhufengRobot.GetInstance(); LianDan = LianDanRobot.GetInstance(); SongJing = SongJingRobot.GetInstance(); Zhenfa = ZhenfaRobot.GetInstance(); LuanZhou = AutoWanderRobot.GetInstance(); Caiqi = CaiqiRobot.GetInstance(); WuDangNew = WuDangNewRobot.GetInstance(); }
public override void Run() { base.Run(); if (_targetAddress.Equals("天柱峰下")) { Stop(); Robot rbt = GotoTianzhufengRobot.GetInstance(); rbt.AfterCmd = this.AfterCmd; rbt.Run(); } DoStep1(); }