Exemple #1
0
    // Update is called once per frame

    public void updateRange()

    {
        if (timeSpan == null)
        {
            return;
        }
        KeyValuePair <float, float> rng = DOMController.getDefaultRange();

        Debug.LogFormat("Got def range {0} {1}", rng.Key, rng.Value);
        timeSpan.SetValueWithoutNotify(rng.Key);
        timeSpan.SetValue2WithoutNotify(rng.Value);
    }
    public void updateForce() //event was updated...
    {
        KeyValuePair <float, float> rng = getDefaultRange();

        Debug.LogFormat("Got range {0} {1}", rng.Key, rng.Value);
        timeSpan.SetValueWithoutNotify(rng.Key);
        timeSpan.SetValue2WithoutNotify(rng.Value);

        //if (timeController.value < rng.Key) timeController.SetValueWithoutNotify(rng.Key);
        //if (timeController.value > rng.Value) timeController.SetValueWithoutNotify(rng.Value);
        timeController.SetValueWithoutNotify(rng.Key);
        updateToSet(true);
        updateTrackRot();
    }