Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        playermovement player
            = other.gameObject.GetComponent <playermovement>();
        LevelManager level
            = other.gameObject.GetComponent <LevelManager>();

        if (player != null)
        {
            Debug.Log("Blue Trigger Active");
            level.AddBlue();
        }
    }