public void SetOndulation(Ondulation ondulation) { Ondulation = ondulation; switch (Ondulation) { case Ondulation.Right: CurveRight.SetActive(true); CurveLeft.SetActive(false); KeepDirection.SetActive(false); break; case Ondulation.Left: CurveRight.SetActive(false); CurveLeft.SetActive(true); KeepDirection.SetActive(false); break; default: CurveRight.SetActive(false); CurveLeft.SetActive(false); KeepDirection.SetActive(true); break; } }
public DroneController ondulation() { this.droneConnection.sendCommand(Ondulation.ondulation()); return(this); }