Beispiel #1
0
        //---------------------------------------------------------------------
        // Public
        //---------------------------------------------------------------------

        public void Init()
        {
            SortedParams = new DotParamsList <T>(Params.Length);
            foreach (var param in Params)
            {
                SortedParams[param.Time] = param;
            }
        }
Beispiel #2
0
        public void Update()
        {
            if (SortedParams == null)
            {
                SortedParams = new DotParamsList <T>(Params.Length);
            }
            else
            {
                SortedParams.Clear();
            }


            foreach (var param in Params)
            {
                SortedParams[param.Time] = param;
            }
        }