Exemple #1
0
    void OnHealthChanged()
    {
        healthChanged.Invoke(currentHealth, initialHealth);          //TODO add in the player identifier (modify event)

        if (localNetworkedPlayer != null)
        {
            localNetworkedPlayer.CmdUpdateHealth(currentHealth, initialHealth);
        }
    }