void Update() { UpdatePosition(); switch (FinchCore.NodesState.GetControllersCount()) { case 2: Sprite.sprite = DoubleControllersLeft; break; case 1: Sprite.sprite = OneControllerLeft; break; default: Sprite.sprite = ZeroControllerLeft; break; } bool leftReady = !FinchController.Left.IsConnected || FinchController.Left.GetPressTime(FinchControllerElement.HomeButton) > FinchCalibration.Settings.TimePressingToCallCalibration; bool rightReady = !FinchController.Right.IsConnected || FinchController.Right.GetPressTime(FinchControllerElement.HomeButton) > FinchCalibration.Settings.TimePressingToCallCalibration; if (PlayableSet.AllPlayableNodesConnected || leftReady && rightReady && FinchCore.NodesState.GetControllersCount() > 0) { FinchCalibration.Calibrate(CalibrationType.FullCalibration); } }
private void Start() { instance = this; TurnOffSteps(); if (Settings.CalibrateOnStart) { Calibrate(CalibrationType.FullCalibration); } }
/// <summary> /// Load step at calibration module. /// </summary> /// <param name="stepId">Step number</param> protected void LoadStep(int stepId) { FinchCalibration.LoadStep(stepId); }