示例#1
0
 // Start is called before the first frame update
 public void Track(CellSimulation sim)
 {
     if (time % frameSkip == 0)
     {
         foreach (Cell c in sim.cells)
         {
             trackingFile.Add(time + ";" + c.id + ";" + c.center.x.ToString("0.00", CultureInfo.InvariantCulture) + ";" + c.center.y.ToString("0.00", CultureInfo.InvariantCulture));
         }
     }
     ++time;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     sim = GetComponent <CellSimulation>();
 }