Exemple #1
0
    private void ServerHandleOnDeath()
    {
        ServerOnPlayerDie?.Invoke(connectionToClient.connectionId);//getting conn for client for event


        NetworkServer.Destroy(gameObject);
    }
    private void HandleBaseDeath()
    {
        //Event when the players base is destroyed to stop them playing
        ServerOnPlayerDie?.Invoke(connectionToClient.connectionId);

        NetworkServer.Destroy(gameObject);
    }
    private void ServerHandleDie()
    {
        //Raises This Event With Our Player Id
        ServerOnPlayerDie?.Invoke(connectionToClient.connectionId);

        NetworkServer.Destroy(gameObject);
    }
Exemple #4
0
    private void ServerHandleDie()
    {
        ServerOnPlayerDie?.Invoke(connectionToClient.connectionId);

        NetworkServer.Destroy(gameObject);
    }
Exemple #5
0
 private void ServerHandleDie()
 {
     //Called when health die event is triggered. Destroys base gameobject.
     ServerOnPlayerDie?.Invoke(connectionToClient.connectionId);
     NetworkServer.Destroy(gameObject);
 }