Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag("Player"))
        {
            playerStats.RestoreHealth(healthRestoreAmount);

            //TODO: healthpacks object pooling?
            Destroy(gameObject);
        }
    }