Exemplo n.º 1
0
    void OnDestroy()
    {
        PlayerPoints playerPoints = FindObjectOfType <PlayerPoints>();

        if (playerPoints != null)
        {
            playerPoints.UpdatePoints(points);
        }
    }