Chykary / FizzySteamworks

A transport for Mirror using Steam / Steamworks.NET
299 stars 32 forks source link

Should not run code when Transport is disabled #13

Closed Gennon closed 3 years ago

Gennon commented 3 years ago

Hi, I was testing the Transport, but wanted to disabled it for some builds etc. However, by disabling the component it was still running some code that requires Steam to be running. I had to add the following code in the Awake function:

if(!enabled) { return; }

I think this should be a feature in this transport anyway.

Thanks for you work!

Chykary commented 3 years ago

Thank you! Fixed in the latest release. :-)