Exemplo n.º 1
0
    void OnTriggerEnter(Collider collider)
    {
        LevelComplete levelComplete = collider.GetComponent <LevelComplete>();

        if (levelComplete != null)
        {
            levelComplete.CompleteLevel(this);
        }
    }