using UnityEngine;

public class CatPet : MonoBehaviour
{
    private CatAI catAI;

    private void Awake()
    {
        catAI = GetComponent<CatAI>();
    }

    private void OnMouseDown()
    {
        if (catAI == null) return;
        Debug.Log("Cat pet registered.");
        catAI.RegisterPet();
    }
}
