playerCtrl.OnTriggerEnter C# (CSharp) Méthode

OnTriggerEnter() public méthode

public OnTriggerEnter ( Collider other ) : void
other Collider
Résultat void
    void OnTriggerEnter(Collider other)
    {
        if (other.CompareTag ("pickup")) {
            other.gameObject.SetActive (false);
            count++;
        }
    }