Orb.OnTriggerEnter C# (CSharp) Method

OnTriggerEnter() public method

public OnTriggerEnter ( Collider col ) : void
col Collider
return void
    void OnTriggerEnter(Collider col)
    {
        if(col.tag == "Player")
        {
            if(!GetComponent<AudioSource> ().isPlaying)
            {
                GetComponent<AudioSource> ().Play();
                ep.orbs += 1;
                PlayerPrefs.SetInt("CurrencyAmount", PlayerPrefs.GetInt("CurrencyAmount", CurrencyControl.currencyAmount) + orbValue);
            }

           //     Debug.Log("WTF YOU ARE HITTING ME!?");
            StartCoroutine(DestroyOrb());
        }
    }