Beispiel #1
0
 void OnDestroy()
 {
     if (_positions != null)
     {
         _positions.Dispose();
     }
     if (_lifes != null)
     {
         _lifes.Dispose();
     }
 }
Beispiel #2
0
 void OnDestroy()
 {
     if (_positions != null)
     {
         _positions.Dispose();
     }
     if (_velocities != null)
     {
         _velocities.Dispose();
     }
     if (_lifes != null)
     {
         _lifes.Dispose();
     }
     if (_velSimulation != null)
     {
         _velSimulation.Dispose();
     }
     if (_posSimulation != null)
     {
         _posSimulation.Dispose();
     }
 }