Exemplo n.º 1
0
    public void play()
    {
        if (isPlaying)
        {
            return;
        }

        Current.isPlaying = true;

        if (Current.stepCount == 0 && Current.StepTimer == 0)
        {
            Current.BroadcastMessage("Restart");
        }
        Current.BroadcastMessage("Play");
        Time.timeScale  = 1 / StepDuration;
        canEditCommands = false;
    }