Ejemplo n.º 1
0
        public void OnEnter(TriggerVolume trigger, Collider2D collision)
        {
            MyPlayer myPlayer = collision.GetComponent <MyPlayer>();

            if (myPlayer != null)
            {
                myPlayer.Die();
            }
        }