public void SwitchAutoMove() { if (!IsAutoMove) { StartAutoMove(); localManager.AddStartStageClient(this); localManager.AddEndStageClient(this); } else { StopAutoMove(); localManager.RemoveStartStageClient(this); localManager.RemoveEndStageClient(this); } }