void StartSim() { currentSimObj = Instantiate(GatePrefabs[currentSimIndex], SimPos); currentSim = currentSimObj.GetComponent <Simulate>(); currentSim.StartSimulation(SimSpeed); simInitRot = currentSimObj.transform.rotation; SimName.text = currentSim.SimName(); }