I'm fairly new to game networking, and I was wondering when it was more appropriate to run code on the master client or when the view is 'mine'.
Currently, I'm using isMasterClient on Start and Update methods for enemy AI. I also am using it to instantiate scene objects like enemies.
I ran into some issues though when I tried to destroy the enemies ONLY on the masterClient, and ultimately changed my EnemyHealth script to destroy when the view is 'mine'.
So I thought I'd ask here: When is it most appropriate to use the isMasterClient vs isMine?
Currently, I'm using isMasterClient on Start and Update methods for enemy AI. I also am using it to instantiate scene objects like enemies.
I ran into some issues though when I tried to destroy the enemies ONLY on the masterClient, and ultimately changed my EnemyHealth script to destroy when the view is 'mine'.
So I thought I'd ask here: When is it most appropriate to use the isMasterClient vs isMine?