I want to run debug code for authoring playback but not stand-alone or web player.
Use Application.platform.