Hi everyone, I'm making an MMO using mirror and need som tips on how to make the enemies. Whats the best way to handle a state machine? What should be server/client specified and so on.
So far I've gone with a state machine that has a separate state for server and client. Server handles movement, dealing damage and such, and client handles animation, player detection, and right now it handles state switching (I'm not sure if this is the best way). Right now the enemies function the correct way only for the host, clients can't damage correctly and have a whole bunch of other bugs.
Whats the best way to sync movement to clients? I tried using network transform but I can't get it to work properly.
If anyone have any code examples or tutorials for this it would be extremely appreciated, since I find it a little hard to find without having to spend a lot of money in the asset store on stuff I don't even know if it's that useful for what I'm developing.