Пример #1
0
 public void Reset()
 {
     if (Application.isPlaying)
     {
         RestorePoint();
         initializePoint();
         dataPackage.Dispose(true);
         for (int i = 0; i < jointAndPointControlls.Length; i++)
         {
             jointAndPointControlls[i].GetData(dataPackage);//OYM:在这里对各种joint和point进行分类与编号
         }
         dataPackage.SetNativeArray();
         delayTime = delayTime < 0.017f ? 0.017f : delayTime;
     }
 }
 private void OnDestroy()
 {
     RestorePoint();
     dataPackage.Dispose();
 }