Esempio n. 1
0
    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;
        }
    }
Esempio n. 2
0
        public DroneController ondulation()
        {
            this.droneConnection.sendCommand(Ondulation.ondulation());

            return(this);
        }