Exemplo n.º 1
0
    void Start()
    {
        if (pedalInput == null)
        {
            pedalInput = GetComponent <PedalInputController>();
        }

        Init();
    }
Exemplo n.º 2
0
    public void Init()
    {
        if (pedalInput == null)
        {
            pedalInput = GetComponent <PedalInputController>();
        }

        InitWheel();
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        imageTexture            = new Texture2D(255, 255);
        pedalInputController    = new PedalInputController();
        steeringInputController = new SteeringInputController();
        Debug.Log("CREATED");

        driveBtn.onClick.AddListener(handleDriveBtnClick);
        plane.SetActive(false);
        ipInput.text = serverIp;
    }
Exemplo n.º 4
0
    void Start()
    {
        TriggerPress += ev =>
        {
            if (ev == InputEvent.TOGGLE_MAIN_CAM)
            {
                var robot = GetComponent <RobotSetup>();
                robot.UI.MainCameraToggle.isOn = !robot.UI.MainCameraToggle.isOn;
            }
        };

        if (pedalInput == null)
        {
            pedalInput = GetComponent <PedalInputController>();
        }

        Init();
    }