Hi,
I have a basic question. Why do we unsubscribe for functions?
As far as I understand if we call health.ServerOnDie += ServerHandleOnDie;
server calles the method which destroys our object (so it is destroyed at all clients PC’s and on server), - this is understandable for me, but why do we call unsubsribe method? It cannot be destroyed twice, because function was already done so the instance does not exist.
Or cannot we just call in one place OnStopServer - unsubsribe all methods?
Is it a need or just fo keeping things clear?
PS. I am not sure if understand OnServerStop - is it when we pause the game ? I could not find it in mirror docs.