예제 #1
0
    public void OnCollisionEnter(Collision collision)
    {
        ObstacleManager om = FindObjectOfType <ObstacleManager>();

        FindObjectOfType <GameLogic>().ModifyScore((int)(scoreModifier * om.CalculatePointDecay()));
        FindObjectOfType <GameManager>().ModifyTime(timeModifier);

        if (isGoodObstacle)
        {
            om.RandomObstacles(6);
            om.timeSinceLastHit = 0;
        }
    }