Database Control Pro Documentation
Version 1.0.0 onwards



Contents > Running a Command Sequence at Runtime
Running a Command Sequence at Runtime

To run a Command Sequence at runtime you will need to write you own code or use the code from the demos.
A Command Sequence can be run using C# or UnityScript.

Database Control Pro includes a very basic example scene to get you started.
There is a C# version and a UnityScript version of the scene.

The C# version can be found at Assets>Database Control Pro>Demos>Extras>Run CS On Space Bar>C#>RunCSOnSpaceBar

The UnityScript version can be found at Assets>Database Control Pro>Demos>Extras>Run CS On Space Bar>Js>RunCSOnSpaceBar

Before you hit play make sure you have setup a Command Sequence and fill in the fields on the script attached to the Manager gameObject.
When you run the scene, hit the space bar and the Command Sequence will be run. The result will be displayed in the console.
To see how the Command Sequence is run, take a look at the script attached to the 'Manager' GameObject or look through the code on the next two pages.