void Start() { pendulum.GetComponent <Pendulo>(); canvas.GetComponent <CanvasScript>(); roboticHand.GetComponent <ENTICourse.IK.InverseKinematics>(); pendulum.SetMove(false); timer = 0; statusSimulation = States.done; roboticHand.NewDestination(defHandPos); initStopTime = timeToPredictStopPosition; openedHands = false; roboticHand.perfFollow = false; }
// Use this for initialization void Start() { managerScript = manager.GetComponent <SceneManager>(); pendulum = pendulum.GetComponent <Pendulo>(); stopSlider.onValueChanged.AddListener(delegate { StopAt(); }); gravitySlider.onValueChanged.AddListener(delegate { SetGravity(); }); frictionSlider.onValueChanged.AddListener(delegate { SetFriction(); }); initAngleXSlider.onValueChanged.AddListener(delegate { SetInitAngleX(); }); initAngleZSlider.onValueChanged.AddListener(delegate { SetInitAngleZ(); }); initVelXSlider.onValueChanged.AddListener(delegate { SetInitAngularVelX(); }); initVelZSlider.onValueChanged.AddListener(delegate { SetInitAngularVelZ(); }); stopInput.onValueChanged.AddListener(delegate { InputStopAt(); }); gravInput.onValueChanged.AddListener(delegate { InputSetGravity(); }); fricInput.onValueChanged.AddListener(delegate { InputSetFriction(); }); inAngleXInput.onValueChanged.AddListener(delegate { InputSetInitAngleX(); }); inAngleZInput.onValueChanged.AddListener(delegate { InputSetInitAngleZ(); }); inAngleVelXInput.onValueChanged.AddListener(delegate { InputSetInitAngularVelX(); }); inAngleVelZInput.onValueChanged.AddListener(delegate { InputSetInitAngularVelZ(); }); }