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