void allCellsReady() { // waits for both cells to be ready, runs some code once, initializing parameters. if (cell1.readyToRun && cell2.readyToRun && !simStarted) { // Define the interaction class cellInteraction = new twoCellInteraction(cell1, cell2); //if (runningEndocytosis) { // cell1.addReceptors((float)exoEndoRates.endocytosisRates[0]); // cell2.addReceptors((float)exoEndoRates.endocytosisRates[0]); //} else { cell1.addReceptors(toPerBiotick(endocytosisRate)); cell2.addReceptors(toPerBiotick(endocytosisRate)); //} // Preparing variables for run latestBioTickTime = Time.time; // - timeStepsInSeconds; // Setting like this so that the 0 biotick would still generate a fixed update run (otherwise only the "second" biotick would pass the condition) simStarted = true; biotick = 0; Debug.Log("Sim stated!"); } }