예제 #1
0
    void StartSim()
    {
        currentSimObj = Instantiate(GatePrefabs[currentSimIndex], SimPos);
        currentSim    = currentSimObj.GetComponent <Simulate>();
        currentSim.StartSimulation(SimSpeed);

        simInitRot = currentSimObj.transform.rotation;

        SimName.text = currentSim.SimName();
    }