Exemple #1
0
    void Start()
    {
        if (pedalInput == null)
        {
            pedalInput = GetComponent <PedalInputController>();
        }

        Init();
    }
Exemple #2
0
    public void Init()
    {
        if (pedalInput == null)
        {
            pedalInput = GetComponent <PedalInputController>();
        }

        InitWheel();
    }
Exemple #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;
    }
Exemple #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();
    }