Exemplo n.º 1
0
    public override void OnStopServer()
    {
        //UnSub to Health Die Event
        health.ServerOnDie -= ServerHandleDie;


        //Trigger onDespawn event. When this object is despawned from server. We pass the gameobject attacked to the RTSPLAYER script to remove from correct client id.
        ServerOnUnitDespawn?.Invoke(this);
    }
Exemplo n.º 2
0
    public override void OnStopServer()
    {
        health.ServerOnDie -= ServerHandleDie;

        ServerOnUnitDespawn?.Invoke(this);
    }