Exemplo n.º 1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        Cat cat = other.gameObject.GetComponent <Cat>();

        if (!cat)
        {
            return;
        }
        cat.ApplyStatusEffect(duration, type);
        Destroy(gameObject);
    }