예제 #1
0
        private void OnButtonPressed()
        {
            SfcSimulationViewer viewer = GetNode <Sfc2dControls>("..").SfcSimulationViewer;

            if (viewer.ExecutionType == ExecutionType.Paused)
            {
                viewer.ExecutionType = ExecutionType.RunOneStep;
            }
        }
        private void OnButtonPressed()
        {
            SfcSimulationViewer viewer = GetNode <Sfc2dControls>("..").SfcSimulationViewer;

            if (viewer.ExecutionType == ExecutionType.RunContinuously)
            {
                UpdateTextureTo(ExecutionType.Paused);
                viewer.ExecutionType = ExecutionType.Paused;
            }
            else
            {
                UpdateTextureTo(ExecutionType.RunContinuously);
                viewer.ExecutionType = ExecutionType.RunContinuously;
            }
        }