// 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; }
// Start is called before the first frame update void Start() { sim = GetComponent <CellSimulation>(); }