예제 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         callScoreTracker.NormalLeaf(); //delete om vi ska ha normal/super leafs
         callCollectSound.PlayJingle();
         //gameObject.SetActive(false);
         //if(normalLeaf)
         //{
         //callScoreTracker.NormalLeaf();
         //}
         //if(superLeaf
         //{
         //callScoreTracker.SuperLeaf();
         //}
         Destroy(gameObject);
     }
 }