Ejemplo n.º 1
0
    private void OnTriggerEnter2D_InTown(Collider2D collision)
    {
        InteractionObj obj = collision.gameObject.GetComponent <InteractionObj>();

        if (obj == null)
        {
            return;
        }

        obj.Interaction(this);
    }
Ejemplo n.º 2
0
    public void OnTriggerEnter2D_InDungeon(Collider2D collision)
    {
        if (this.m_rb.isKinematic == true)
        {
            return;
        }

        InteractionObj obj = collision.gameObject.GetComponent <InteractionObj>();

        if (obj == null)
        {
            return;
        }

        obj.Interaction(this);
    }