예제 #1
0
    void OnCollisionEnter(Collision collision)
    {
        Scorekeeper scorekeeper = FindObjectOfType <Scorekeeper>();

        scorekeeper.Incrementscore(scoreperhit);
    }