Using [Command] attribute on non-networkgame

I’m working on a multiplayer game, and I’ve started on creating a single player mode. Is there a way to make the Command attribute behave as if the device itself is the server? Currently when I use a function with the Command attribute, I get the error
“Command function CmdShowSpeech called on server”

You are calling the Command from the server instance.

Hmmm I see. So if I’m doing a single player mode, it seems I won’t be able to use methods that have the Command or ClientRpc attribute. If that is the case, what strategies do I have of architecting my code so that I can easily support local and multiplayer modes.

Yes you can. Just don’t invoke the Commands from the server instance. Even if you are the host.