void Start() { if (pedalInput == null) { pedalInput = GetComponent <PedalInputController>(); } Init(); }
public void Init() { if (pedalInput == null) { pedalInput = GetComponent <PedalInputController>(); } InitWheel(); }
// 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; }
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(); }