Esempio n. 1
0
 void OnTriggerEnter(Collider otherCollider)
 {
     if (otherCollider == expectedCollider)
     {
         ScoreKeep scorekeep = FindObjectOfType <ScoreKeep> ();
         scorekeep.IncrementScore(1);
     }
 }
 void OnTriggerEnter(Collider otherCollider)
 {
     if (otherCollider == expectedCollider)
     {
         ScoreKeep    scoreKeep  = FindObjectOfType <ScoreKeep>();
         LevelManager lvlManager = FindObjectOfType <LevelManager>();
         scoreKeep.IncrementScore(1);
         lvlManager.IncrementTime();
     }
 }
    void OnCollisionEnter(Collision collision)
    {
        ScoreKeep scorekeep = FindObjectOfType <ScoreKeep> ();

        scorekeep.IncrementScore(scorePerHit);
    }