Exemplo n.º 1
0
    private void OnCollisionEnter(Collision other)
    {
        _bucketManager.AddScore(_score);

        var playerController = other.gameObject.GetComponent <PlayerController>();

        if (playerController != null)
        {
            playerController.Reset();
        }
    }