Ejemplo n.º 1
0
    void OnTriggerStay2D(Collider2D other)
    {
        GameEntity otherEntity = other.GetComponent <GameEntity>();

        if (otherEntity)
        {
            parent.OnAgro(otherEntity);
        }
    }